code: def is_namedtuple(obj):
      return hasattr(obj, "_fields") and all(
          isinstance(field, str) for field in obj._fields
      )
  
imports: from typing import Any, List, Tuple
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: is_namedtuple(obj) and returns: unknown