code: def _type_check(value: Any, type_hint: Any) -> bool:
      if type_hint is None:
          return True
      try:
          return pure_typing_utils.is_compatible(value, type_hint)
      except NotImplementedError:
          return True
  
file_path: tfx/tfx/orchestration/portable/execution/di_providers.py
imports: from collections.abc import Container, MutableSequence, Sequence
  import inspect
  from typing import Any, Callable, TypeVar, get_args, get_origin
  from tfx.orchestration.portable import data_types
  from tfx.types import artifact
  from tfx.utils import pure_typing_utils
  from tfx.utils.di import errors
  from tfx.utils.di import providers
label_desc: Use image node_id 1 for calling a global function with example usage: _type_check(value, type_hint) and returns: True, pure_typing_utils, True