class_docstr: The base item loader is responsible to decide how the items within a chunk are loaded.
class_docstr_tok: ["The","base","item","loader","is","responsible","to","decide","how","the","items","within","a","chunk","are","loaded","."]
code: def setup(
      self,
      config: Dict,
      chunks: List,
      serializers: Dict[str, Serializer],
  ) -> None:
      self._config = config
      self._chunks = chunks
      self._serializers = serializers
  
imports: import os
  from abc import ABC, abstractmethod
  from time import sleep
  from typing import Any, Dict, List, Optional, Tuple
  import numpy
  import torch
  from lightning.data.streaming.constants import _TORCH_DTYPES_MAPPING, _TORCH_GREATER_EQUAL_2_1_0
  from lightning.data.streaming.serializers import Serializer
label_desc: Use image node_id 1 for calling the BaseItemLoader obj's underlying member method code with example usage: obj.setup(config, chunks, serializers) without return types