code: def __init__(self, dataset: "Dataset") -> None:
      self.rdd = dataset.as_tf_dataset_rdd()
      self.dataset = dataset
  
file_path: BigDL/python/orca/src/bigdl/orca/data/tf/tf2_data.py
imports: from bigdl.orca.data import SparkXShards
  from typing import TYPE_CHECKING
label_desc: Use image node_id 1 to create a new TF2Dataset object from inherited base classes: object with example: obj = TF2Dataset(dataset)