class_docstr: Adapter for `keras.utils.PyDataset` instances.
code: def on_epoch_end(self):
      if self.enqueuer:
          self.enqueuer.stop()
      self.py_dataset.on_epoch_end()
  
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 7 for calling the PyDatasetAdapter obj's underlying member method code with example usage: obj.on_epoch_end() without return types