code: def is_typed_named_tuple(cls):
      """Return True if cls is probably a subtype of `typing.NamedTuple`.
  
      Unfortunately types created with `class T(NamedTuple):` actually
      subclass `tuple` directly rather than NamedTuple.  This is annoying,
      and means we just have to hope that nobody defines a different tuple
      subclass with similar attributes.
      """
      return (
          issubclass(cls, tuple)
          and hasattr(cls, "_fields")
          and hasattr(cls, "_field_types")
      )
  
imports: from __future__ import absolute_import, division, print_function
  import ast
  import hashlib
  import inspect
  import re
  import types
  from functools import wraps
  from types import ModuleType
  from hypothesis.internal.compat import ARG_NAME_ATTRIBUTE, PY2, getfullargspec, hrange, isidentifier, qualname, str_to_bytes, to_str, to_unicode, update_code_location
  from hypothesis.vendor.pretty import pretty
label_desc: Use image node_id 4 for calling a global function with example usage: is_typed_named_tuple(cls) and returns: unknown