code: def is_namedtuple(instance, strict=False):
      """Returns True iff `instance` is a `namedtuple`.
  
      Args:
        instance: An instance of a Python object.
        strict: If True, `instance` is considered to be a `namedtuple` only if it is
          a "plain" namedtuple. For instance, a class inheriting from a `namedtuple`
          will be considered to be a `namedtuple` iff `strict=False`.
  
      Returns:
        True if `instance` is a `namedtuple`.
      """
      return _pywrap_utils.IsNamedtuple(instance, strict)
  
imports: import collections
  import enum
  import wrapt
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import _pywrap_utils
  from tensorflow.python.util.compat import collections_abc
  from tensorflow.python.util.custom_nest_protocol import CustomNestProtocol
label_desc: Use image node_id 2 for calling a global function with example usage: is_namedtuple(instance, strict) and returns: _pywrap_utils