class_docstr: A generic that takes a beam.Pipeline as its single argument.
code: def __init__(  # pylint: disable=invalid-name
      self, artifact_type: Type[_BeamPipeline], _init_via_getitem=False
  ):
      if not _init_via_getitem:
          class_name = self.__class__.__name__
          raise ValueError(
              (
                  "%s should be instantiated via the syntax `%s[T]`, where T is "
                  "`beam.Pipeline`."
              )
              % (class_name, class_name)
          )
      self._type = artifact_type
  
imports: import inspect
  from typing import Any, Dict, Generic, List, Type, TypeVar, Union, get_args, get_origin
  from tfx.dsl.component.experimental import json_compat
  from tfx.types import artifact
  from tfx.utils import deprecation_utils
label_desc: Use image node_id 1 to create a new _PipelineTypeGeneric object  with example: obj = _PipelineTypeGeneric(artifact_type, _init_via_getitem)