code: def replace_batch_sampler(dataloader, batch_sampler):
      raise NotImplementedError(
          "Jittor does not support using batch_sampler in `Dataset` now, "
          "please check if you have set `Dataset.sampler` as `BatchSampler`"
          "or report this bug to us."
      )
  
file_path: fastNLP/fastNLP/core/drivers/jittor_driver/utils.py
imports: import inspect
  import os
  import random
  from copy import deepcopy
  from typing import Union
  import numpy
  from fastNLP.core.dataloaders import JittorDataLoader
  from fastNLP.envs.imports import _NEED_IMPORT_JITTOR
  from fastNLP.envs.utils import get_global_seed
  from fastNLP.envs import get_global_rank, FASTNLP_BACKEND_LAUNCH, FASTNLP_GLOBAL_SEED
  from fastNLP.core.samplers import ReproducibleBatchSampler
  from fastNLP.core.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: replace_batch_sampler(dataloader, batch_sampler) without return types