code: def _is_special_form(cls):
      # This function is basically a heuristic hack.
      # If you're getting spurious warnings from this, and think you have another kind of
      # class that should be excluded from Equinox's checks, then please open a GitHub
      # issue: https://github.com/patrick-kidger/equinox/issues
      if cls is _Initable:
          return True
      if cls.__module__ in (
          "typing",
          "typing_extensions",
          "collections.abc",
      ):
          return True
      if Protocol in cls.__bases__:
          return True
      return False
  
imports: import abc
  import dataclasses
  import functools
  import inspect
  import types
  import warnings
  import weakref
  from collections.abc import Callable
  from typing import Any, cast, Optional, Protocol, TYPE_CHECKING, TypeVar, Union
  from typing_extensions import dataclass_transform, ParamSpec
  import jax._src.traceback_util
  import jax.tree_util
  import numpy
  from jaxtyping import Array, Bool, PyTreeDef
  from ._better_abstract import ABCMeta, dataclass
  from ._caches import internal_lru_caches
  from ._doc_utils import doc_repr
  from ._pretty_print import tree_pformat
  from ._tree import tree_equal
label_desc: Use image node_id 3 for calling a global function with example usage: _is_special_form(cls) and returns: False, True, True, True