code: def isnamedtuple(f):
      """Returns True if the argument is a namedtuple-like."""
      if not (inspect.isclass(f) and issubclass(f, tuple)):
          return False
      if not hasattr(f, "_fields"):
          return False
      fields = getattr(f, "_fields")
      if not isinstance(fields, tuple):
          return False
      if not all(isinstance(f, str) for f in fields):
          return False
      return True
  
file_path: DALI/dali/python/nvidia/dali/_autograph/pyct/inspect_utils.py
imports: import inspect
  import itertools
  import linecache
  import sys
  import threading
  import types
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: isnamedtuple(f) and returns: True, False, False, False, False