class_docstr: Adapter for `keras.utils.PyDataset` instances.
code: def __init__(
      self,
      x,
      class_weight=None,
      shuffle=False,
  ):
      self.py_dataset = x
      self.class_weight = class_weight
      self.enqueuer = None
      self.shuffle = shuffle
      self._output_signature = None
  
imports: import multiprocessing.dummy
  import queue
  import random
  import threading
  import time
  import warnings
  import weakref
  from contextlib import closing
  import numpy
  import tree
  from keras.api_export import keras_export
  from keras.trainers.data_adapters import data_adapter_utils
  from keras.trainers.data_adapters.data_adapter import DataAdapter
label_desc: Use image node_id 1 to create a new PyDatasetAdapter object from inherited base classes: DataAdapter with example: obj = PyDatasetAdapter(x, class_weight, shuffle)