code: def _subclasscheck_union(cls, subcls):
      """A basic ``__subclasscheck__`` method for :class:`~typing.Union`."""
      return any(deep_issubclass(subcls, arg) for arg in get_args(cls))
  
imports: import functools
  import sys
  import typing
  import weakref
  import typing_extensions
  from multipledispatch.variadic import Variadic
  from multipledispatch.variadic import isvariadic
label_desc: Use image node_id 6 for calling a global function with example usage: _subclasscheck_union(cls, subcls) and returns: any