code: def check_serializing_named_tensor(tensor):
      if tensor.has_names():
          raise RuntimeError(
              "NYI: Named tensors don't support serialization. Please drop "
              "names via `tensor = tensor.rename(None)` before serialization."
          )
  
file_path: pytorch/torch/_namedtensor_internals.py
imports: from collections import OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: check_serializing_named_tensor(tensor) without return types