code: def get_signature(_callable: Callable) -> inspect.Signature:
      try:
          res = inspect.signature(_callable)
          if res is None:
              raise ValueError("")
          else:
              return res
      except Exception:
          return generate_signature(_callable)
  
file_path: PySyft/packages/syft/src/syft/serde/signature.py
imports: import inspect
  from inspect import Parameter
  from inspect import Signature
  from inspect import _ParameterKind
  from inspect import _signature_fromstr
  import re
  from typing import Callable
  from typing import Optional
  from .deserialize import _deserialize
  from .recursive import recursive_serde_register
  from .serialize import _serialize
label_desc: Use image node_id 7 for calling a global function with example usage: get_signature(_callable) and returns: res, generate_signature