Access module targetted by


I am working with torch.fx.Graph, let’s say I have a torch.fx.Node call node and node.op is call_module, how can I access the module object pointed by
I would like to access the object in order to retrieve its type.

My work is part of an automated model modification framework so looking at the model code isn’t an option for what I am doing.
Thank you.