code: def __init__(self, fn, page_size, *args, **kwargs):
      self.entries: List = []
      self.last_chunk_size = page_size
      self.offset = 0
      self.fn = fn
      self.page_size = page_size
      self.args = args
      self.kwargs = kwargs
  
imports: import io
  import os
  import random
  import threading
  import time
  from enum import Enum
  from typing import Iterator, List, Optional
  from PIL import JpegImagePlugin
  from lightly.openapi_generated.swagger_client.configuration import Configuration
label_desc: Use image node_id 1 to create a new Paginated object from inherited base classes: Iterator with example: obj = Paginated(fn, page_size)