class_docstr: An abstract class that defines a data source.
class_docstr_tok: ["An","abstract","class","that","defines","a","data","source","."]
docstr: Creates a tf.data.Dataset.
code: def create_dataset(
      self,
      item_ids,
      flatten=False,
      shuffle=False,
      row_shuffle_buffer_size=1000000,
      pixel_shuffle_buffer_size=1000000,
  ):
      """Creates a tf.data.Dataset."""
      if self.preload:
          return self._create_preloaded_dataset(
              item_ids, flatten=flatten, shuffle=shuffle
          )
      else:
          return self._create_lazy_dataset(
              item_ids,
              flatten=flatten,
              shuffle=shuffle,
              row_shuffle_buffer_size=row_shuffle_buffer_size,
              pixel_shuffle_buffer_size=pixel_shuffle_buffer_size,
          )
  
imports: import abc
  import functools
  import itertools
  from typing import Any, Iterable, Optional, Sequence, Union
  from absl import logging
  from flax import jax_utils
  import jax
  import numpy
  import tensorflow
  from nerfies import camera
  from nerfies import gpath
  from nerfies import image_utils
  from nerfies import tf_camera
  from nerfies import utils
  from tensorflow.python.data.util import nest
label_desc: Use image node_id 25 for calling the DataSource obj's underlying member method code with example usage: obj.create_dataset(item_ids, flatten, shuffle, row_shuffle_buffer_size, pixel_shuffle_buffer_size) and returns: self, self