code: def _is_namedtuple_instance(x):
      """Checks if `x` is an instance of a `namedtuple` type."""
      if not isinstance(x, tuple):
          return False
      return hasattr(x, "_fields")
  
file_path: trax/trax/fastmath/numpy.py
imports: import numpy
  from scipy.special import logsumexp
  from trax.shapes import signature
label_desc: Use image node_id 14 for calling a global function with example usage: _is_namedtuple_instance(x) and returns: hasattr, False