code: def unzip_namedshape(namedshape):
      if isinstance(namedshape, OrderedDict):
          namedshape = namedshape.items()
      if not hasattr(namedshape, "__iter__") and not isinstance(
          namedshape, tuple
      ):
          raise RuntimeError(
              f"Expected namedshape to be OrderedDict or iterable of tuples, got: {type(namedshape)}"
          )
      if len(namedshape) == 0:
          raise RuntimeError("Expected namedshape to non-empty.")
      return zip(*namedshape)
  
file_path: pytorch/torch/_namedtensor_internals.py
imports: from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: unzip_namedshape(namedshape) and returns: zip