code: def _cpp_signature(
      f: NativeFunction, *, method: bool = False
  ) -> CppSignature:
      return CppSignatureGroup.from_native_function(
          f, method=method
      ).signature
  
imports: from dataclasses import dataclass
  from typing import Dict, List, Optional, Sequence, Set, Tuple, Union
  from torchgen.api import cpp
  from torchgen.api.types import Binding, CppSignature, CppSignatureGroup
  from torchgen.gen import pythonify_default
  from torchgen.model import Argument, BaseTy, BaseType, FunctionSchema, ListType, NativeFunction, OptionalType, Return, Type, Variant
label_desc: Use image node_id 1 for calling a global function with example usage: _cpp_signature(f) and returns: CppSignatureGroup