docstr: Prepare a dataloader for distributed training. The dataloader will be wrapped by
  `torch.utils.data.DataLoader`
docstr_tok: ["Prepare","a","dataloader","for","distributed","training",".","The","dataloader","will","be","wrapped","by","`","torch.utils.data.DataLoader","`"]
code: def prepare_dataloader(
      self,
      dataset: Dataset,
      batch_size: int,
      shuffle: bool = False,
      seed: int = 1024,
      drop_last: bool = False,
      pin_memory: bool = False,
      num_workers: int = 0,
      **kwargs,
  ):
      """Prepare a dataloader for distributed training. The dataloader will be wrapped by
      `torch.utils.data.DataLoader`
      """
  
file_path: colossalai/colossalai/booster/plugin/plugin_base.py
imports: from abc import ABC, abstractmethod
  from typing import Callable, Iterator, List, Optional, Tuple
  import torch.nn
  from torch.optim import Optimizer
  from torch.optim.lr_scheduler import _LRScheduler
  from torch.utils.data import DataLoader, Dataset
  from colossalai.checkpoint_io import CheckpointIO
  from colossalai.interface import OptimizerWrapper
label_desc: Use image node_id 10 for calling the Plugin obj's underlying member method code with example usage: obj.prepare_dataloader(dataset, batch_size, shuffle, seed, drop_last, pin_memory, num_workers) without return types