code: def set_loader_cfg(
      self,
      num_workers: Optional[int] = None,
  ):
      # TFDS and WDS readers need # workers for correct # samples estimate before loader processes created
      if hasattr(self.reader, "set_loader_cfg"):
          self.reader.set_loader_cfg(num_workers=num_workers)
  
imports: import io
  import logging
  from typing import Optional
  import torch
  import torch.utils.data
  from PIL import Image
  from .readers import create_reader
label_desc: Use image node_id 5 for calling the IterableImageDataset obj's underlying member method code with example usage: obj.set_loader_cfg(num_workers) without return types