class_docstr: Metaclass for _PrimitiveTypeGeneric, to enable primitive type indexing.
docstr: Metaclass method allowing indexing class (`_PrimitiveTypeGeneric[T]`).
docstr_tok: ["Metaclass","method","allowing","indexing","class","(","`","_PrimitiveTypeGeneric","[","T","]","`",")","."]
code: def __getitem__(
      cls: Type["_PrimitiveTypeGeneric"],
      params: Type[
          Union[int, float, str, bool, List[Any], Dict[Any, Any]]
      ],
  ):
      """Metaclass method allowing indexing class (`_PrimitiveTypeGeneric[T]`)."""
      return cls._generic_getitem(params)
  
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 for calling the _PrimitiveTypeGenericMeta obj's underlying member method code with example usage: obj.__getitem__(cls, params) and returns: cls