code: def get_signature_for_torch_op(
      op: Callable, return_schemas: bool = False
  ):
      """
      Given an operator on the `torch` namespace, return a list of `inspect.Signature`
      objects corresponding to the overloads of that op.. May return `None` if a signature
      could not be retrieved.
  
      Args:
          op (Callable): An operator on the `torch` namespace to look up a signature for
  
      Returns:
          Optional[List[inspect.Signature]]: A list of signatures for the overloads of this
              operator, or None if the operator signatures could not be retrieved. If
              return_schemas=True, returns a tuple containing the optional Python signatures
              and the optional TorchScript Function signature
      """
      if isinstance(op, OpOverload):
          schemas = [op._schema]
      elif isinstance(op, OpOverloadPacket):
          schemas = [
              getattr(op, overload)._schema
              for overload in op.overloads()
          ]
      else:
          override = _manual_overrides.get(op)
          if override:
              return (override, None) if return_schemas else None
  
          aten_fn = torch.jit._builtins._find_builtin(op)
  
          if aten_fn is None:
              return (None, None) if return_schemas else None
          schemas = torch._C._jit_get_schemas_for_operator(aten_fn)
  
      signatures = [
          _torchscript_schema_to_signature(schema) for schema in schemas
      ]
      return (signatures, schemas) if return_schemas else signatures
  
imports: import torch
  import inspect
  import numbers
  import types
  import typing
  import enum
  import warnings
  from typing import Any, Callable, Dict, List, Optional, Tuple, NamedTuple, cast, TYPE_CHECKING
  from torch._jit_internal import boolean_dispatched
  from ._compatibility import compatibility
  from torch._ops import OpOverloadPacket, OpOverload
label_desc: Use image node_id 6 for calling a global function with example usage: get_signature_for_torch_op(op, return_schemas) and returns: unknown, unknown, unknown