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","."]
docstr: Logic to load the chunk in background to gain some time.
docstr_tok: ["Logic","to","load","the","chunk","in","background","to","gain","some","time","."]
code: def pre_load_chunk(
      self, chunk_index: int, chunk_filepath: str
  ) -> None:
      """Logic to load the chunk in background to gain some time."""
      pass
  
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 4 for calling the BaseItemLoader obj's underlying member method code with example usage: obj.pre_load_chunk(chunk_index, chunk_filepath) without return types