code: def isinstance_namedtuple(obj: object) -> bool:
      """
      Is this an instance of namedtuple/NamedTuple?
      From: https://stackoverflow.com/a/62692640
  
      Args:
          obj (object): An object.
  
      Returns:
          bool: True if namedtuple/NamedTuple else False.
      """
      return (
          isinstance(obj, tuple)
          and hasattr(obj, "_asdict")
          and hasattr(obj, "_fields")
      )
  
imports: import sys
  import torch
  from collections import OrderedDict
  from deepspeed.runtime.utils import see_memory_usage
  from deepspeed.runtime.zero.offload_config import OffloadDeviceEnum
  from deepspeed.runtime.zero.partition_parameters import _init_external_params
  from deepspeed.runtime.zero.partition_parameters import *
  from deepspeed.runtime.zero.partitioned_param_coordinator import PartitionedParameterCoordinator, InflightParamRegistry, iter_params
  from deepspeed import comm
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 2 for calling a global function with example usage: isinstance_namedtuple(obj) and returns: unknown