code: def get_forward_input_names(module: Type[torch.nn.Module]):
      params = inspect.signature(module.forward).parameters
      param_names = [
          k for k, v in params.items() if not str(v).startswith("*")
      ]
      assert param_names[0] == "self", (
          "Expected first argument of forward to be `self`, "
          f"but found `{param_names[0]}`"
      )
      return param_names[1:]
  
file_path: gluonts/src/gluonts/torch/util.py
imports: from typing import List, Optional, Type, Union
  import inspect
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: get_forward_input_names(module) and returns: param_names