class_docstr: A key for a dataset used for analysis.
class_docstr_tok: ["A","key","for","a","dataset","used","for","analysis","."]
code: def __new__(
      cls, dataset_key: Union[str, object], is_cached: bool = True
  ) -> "DatasetKey":
      if dataset_key is not DatasetKey._FLATTENED_DATASET_KEY:
          if not isinstance(dataset_key, str):
              raise ValueError(
                  f"User provided dataset_key must be a str. Got: {dataset_key}"
              )
          dataset_key = _make_valid_cache_component(dataset_key)
      return super().__new__(cls, key=dataset_key, is_cached=is_cached)
  
imports: import os
  import pickle
  import re
  import sys
  from typing import Iterable, Mapping, List, Optional, Union, Tuple
  import apache_beam
  import tensorflow
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 2 for calling the DatasetKey obj's underlying member method code with example usage: obj.__new__(cls, dataset_key, is_cached) and returns: super