code: def get_forward_arguments(module: torch.nn.Module) -> Set[str]:
      signature = inspect.signature(module.forward)
      return set([arg for arg in signature.parameters if arg != "self"])
  
file_path: allennlp/allennlp/models/multitask.py
imports: from collections import defaultdict
  import inspect
  from typing import Any, Dict, List, Set, Union, Mapping
  import torch
  from allennlp.data import Vocabulary, TextFieldTensors
  from allennlp.modules import Backbone
  from allennlp.models.model import Model
  from allennlp.models.heads import Head
  from allennlp.nn import InitializerApplicator
label_desc: Use image node_id 1 for calling a global function with example usage: get_forward_arguments(module) and returns: set