code: def _check_fails(cls, other):
      try:
          if sys._getframe(1).f_globals["__name__"] not in [
              "abc",
              "functools",
              "typing",
          ]:
              # Typed dicts are only for static structural subtyping.
              raise TypeError(
                  "TypedDict does not support instance and class checks"
              )
      except (AttributeError, ValueError):
          pass
      return False
  
imports: from typing import Any
  import sys
  from typing import _type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _check_fails(cls, other) and returns: False