it is just really like a plain python class. Please check yourself the source code at:

  

      github.com
  

  
    keras-team/keras/blob/v2.7.0/keras/utils/data_utils.py#L411-L486 2



      
      
          class Sequence:
            """Base object for fitting to a sequence of data, such as a dataset.
          
          
  Every `Sequence` must implement the `__getitem__` and the `__len__` methods.
            If you want to modify your dataset between epochs you may implement
            `on_epoch_end`.
            The method `__getitem__` should return a complete batch.
          
          
  Notes:
          
          
  `Sequence` are a safer way to do multiprocessing. This structure guarantees
            that the network will only train once
             on each sample per epoch which is not the case with generators.
          
          
  Examples:
          
          
  ```python
            from skimage.io import imread
            from skimage.transform import resize
            import numpy as np
      
    
  

  This file has been truncated. show original