code: def return_names(
      f: NativeFunction, *, fallback_name: str = "result"
  ) -> Sequence[str]:
      returns: List[str] = []
      for i, r in enumerate(f.func.returns):
          # If we have an inplace function, the return argument is
          # implicitly named self.
          # TODO: Consider incorporating this into the data model
          if f.func.name.name.inplace:
              assert (
                  i == 0
              ), "illegal inplace function with multiple returns"
              name = "self"
          # If we are out function, the name is the name of the
          # corresponding output function (r.name will get recorded
          # in field_name later.)
          elif f.func.is_out_fn():
              name = f.func.arguments.out[i].name
          # If the return argument is explicitly named...
          elif r.name:
              name_conflict = any(
                  r.name == a.name
                  for a in f.func.schema_order_arguments()
              )
              if name_conflict and not f.func.is_out_fn():
                  name = f"{r.name}_return"
              else:
                  name = r.name
          # If there is no explicit name and no fallback name was passed in, we just name the output result,
          # unless it's a multi-return, in which case it's result0,
          # result1, etc (zero-indexed)
          else:
              name = (
                  fallback_name
                  if len(f.func.returns) == 1
                  else f"{fallback_name}{i}"
              )
          returns.append(name)
      return returns
  
file_path: pytorch/torchgen/executorch/api/et_cpp.py
imports: from typing import List, Optional, Sequence, Set, Union
  from torchgen import local
  from torchgen.api.types import ArgName, ArrayCType, BaseCType, Binding, ConstRefCType, CType, MutRefCType, NamedCType, SpecialArgName, TupleCType, VectorCType, voidT
  from torchgen.model import Argument, Arguments, BaseTy, BaseType, ListType, NativeFunction, OptionalType, Return, SelfArgument, TensorOptionsArguments, Type
  from torchgen.utils import assert_never
  from .types import ArrayRefCType, BaseTypeToCppMapping, OptionalCType, scalarT, tensorListT, tensorT
label_desc: Use image node_id 7 for calling a global function with example usage: return_names(f) and returns: returns