code: def __init__(
      self,
      dataset,
      ctx=None,
      mode="homo",
      role="guest",
      need_align=False,
      sync_arbiter=False,
      batch_size=-1,
      shuffle=False,
      batch_strategy="full",
      random_state=None,
  ):
      self._ctx = ctx
      self._dataset = dataset
      self._batch_size = batch_size
      if dataset:
          if batch_size is None:
              self._batch_size = len(dataset)
          else:
              self._batch_size = min(batch_size, len(dataset))
      self._shuffle = shuffle
      self._batch_strategy = batch_strategy
      self._random_state = random_state
      self._need_align = need_align
      self._mode = mode
      self._role = role
      self._sync_arbiter = sync_arbiter
  
      self._init_settings()
  
imports: import random
label_desc: Use image node_id 1 to create a new DataLoader object from inherited base classes: object with example: obj = DataLoader(dataset, ctx, mode, role, need_align, sync_arbiter, batch_size, shuffle, batch_strategy, random_state)