code: def _is_valid_artifact_type(artifact_type: Any) -> bool:
      return (
          inspect.isclass(artifact_type)
          and issubclass(artifact_type, _TfxArtifact)
          and artifact_type.TYPE_NAME
      )
  
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 2 for calling a global function with example usage: _is_valid_artifact_type(artifact_type) and returns: unknown