class_docstr: 使用 PaddleSingleDriver 测试基类的函数
class_docstr_tok: ["\u4f7f\u7528","PaddleSingleDriver","\u6d4b\u8bd5\u57fa\u7c7b\u7684\u51fd\u6570"]
docstr: 测试正常情况下 get_dataloader_args 的表现
docstr_tok: ["\u6d4b\u8bd5\u6b63\u5e38\u60c5\u51b5\u4e0b","get_dataloader_args","\u7684\u8868\u73b0"]
code: def test_get_dataloader_args(self, batch_size, shuffle, drop_last):
      """
      测试正常情况下 get_dataloader_args 的表现
      """
      dataloader = DataLoader(
          PaddleNormalDataset(),
          batch_size=batch_size,
          shuffle=shuffle,
          drop_last=drop_last,
      )
      res = PaddleSingleDriver.get_dataloader_args(dataloader)
  
      assert isinstance(res.dataset, PaddleNormalDataset)
      assert isinstance(res.batch_sampler, BatchSampler)
      if shuffle:
          assert isinstance(res.sampler, paddle.io.RandomSampler)
      else:
          assert isinstance(res.sampler, paddle.io.SequenceSampler)
      assert res.shuffle == shuffle
      assert res.batch_size == batch_size
      assert res.drop_last == drop_last
  
imports: import pytest
  from pathlib import Path
  from fastNLP.core.drivers.paddle_driver.single_device import PaddleSingleDriver
  from fastNLP.core.samplers import ReproduceBatchSampler, RandomSampler
  from tests.helpers.models.paddle_model import PaddleNormalModel_Classification_1
  from tests.helpers.datasets.paddle_data import PaddleNormalDataset, PaddleNormalXYDataset
  from tests.helpers.datasets.torch_data import TorchNormalDataset
  from tests.helpers.models.torch_model import TorchNormalModel_Classification_1
  from fastNLP.envs.distributed import rank_zero_rm
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE, _NEED_IMPORT_TORCH
  from fastNLP import prepare_paddle_dataloader, BucketedBatchSampler
label_desc: Use image node_id 14 for calling the TestPaddleDriverFunctions obj's underlying member method code with example usage: obj.test_get_dataloader_args(batch_size, shuffle, drop_last) without return types