code: def extract_init_param(class_):
      args = inspect.getfullargspec(class_.__init__)
      print(class_)
      print(args)
      keys = args[0][1:]
      if len(keys) == 0:
          return {}
      defaults = args[3]
      args_map = {}
      print(keys)
      print(defaults)
      if defaults is not None:
          for idx, i in enumerate(keys[-len(defaults) :]):
              print(args_map)
              print(defaults)
              args_map[i] = defaults[idx]
  
      for i in keys:
          if i not in args_map:
              args_map[i] = Required()
  
      return args_map
  
file_path: FATE/python/fate/components/components/nn/hook_code/extract_torch_modules.py
imports: import inspect
  from torch.nn.modules import linear, activation, rnn, dropout, sparse, pooling, conv, transformer, batchnorm
  from torch.nn.modules import padding, pixelshuffle
  from torch.nn.modules import loss
label_desc: Use image node_id 2 for calling a global function with example usage: extract_init_param(class_) and returns: args_map, dict