code: def is_namedtuple(x):
      """Checks if x is a namedtuple instance. Taken from https://stackoverflow.com/a/2166841 ."""
      t = type(x)
      b = t.__bases__
      if len(b) != 1 or b[0] != tuple:
          return False
      f = getattr(t, "_fields", None)
      if not isinstance(f, tuple):
          return False
      return all(type(n) == str for n in f)
  
label_desc: Use image node_id 5 for calling a global function with example usage: is_namedtuple(x) and returns: all, False, False