Access module targetted by fx.Node.target

Hello,

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 node.target?
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.