code: def get_forward_args(model):
      """
      This function is to get all the arguments(excepts *args and **kwargs)
      It will return a list of arg name
      E.g.
      def forward(self, a, b=1, c: int = 3, *args, **kwargs):
          pass
      it will return ['a', 'b', 'c']
      """
      from bigdl.nano.pytorch.lightning import LightningModule
      from bigdl.nano.pytorch.model import AcceleratedLightningModule
  
      forward_args = inspect.getfullargspec(model.forward).args[1:]
      if isinstance(model, LightningModule):
          if not isinstance(model, AcceleratedLightningModule):
              # forward param list for compiled model
              forward_args = get_forward_args(model.model)
      return forward_args
  
imports: import inspect
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: get_forward_args(model) and returns: forward_args