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