code: def namedtuple_fieldnames(returns: Tuple[Return, ...]) -> List[str]:
      if len(returns) <= 1 or all(r.name is None for r in returns):
          return []
      else:
          if any(r.name is None for r in returns):
              # When building on Windows, `PyStructSequence_UnnamedField` could not be
              # resolved by the linker for some reason, which cause error in building:
              #
              # python_nn_functions.cpp.obj : error LNK2001: unresolved external symbol
              # PyStructSequence_UnnamedField
              #
              # Thus, at this point in time, we do not support unnamed
              # fields in namedtuple; you must either name all fields,
              # or none of them.
              raise ValueError(
                  "Unnamed field is not supported by codegen"
              )
  
          return [str(r.name) for r in returns]
  
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 8 for calling a global function with example usage: namedtuple_fieldnames(returns) and returns: list, unknown