class_docstr: A generic that takes a beam.Pipeline as its single argument.
code: def type(self):
      return self._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 4 for calling the _PipelineTypeGeneric obj's underlying member method code with example usage: obj.type() and returns: self