code: def test_fdl_fastnlp_dataset(self):
      ds = DataSet(
          {"x": [[1, 2], [2, 3, 4], [1]] * 10, "y": [0, 1, 1] * 10}
      )
      fdl = PaddleDataLoader(
          ds, batch_size=3, shuffle=False, drop_last=True
      )
      fdl.set_ignore("y")
      fdl.set_pad("x", -1)
      for batch in fdl:
          assert len(fdl.get_batch_indices()) == 3
          assert "y" not in batch
          assert batch["x"].shape == [3, 3]
  
      with pytest.raises(ValueError):
          PaddleDataLoader(ds, batch_size=3, collate_fn=None)
  
file_path: fastNLP/tests/core/dataloaders/paddle_dataloader/test_fdl.py
imports: import pytest
  import numpy
  from fastNLP.core.dataloaders.paddle_dataloader.fdl import PaddleDataLoader, prepare_paddle_dataloader
  from fastNLP.core.dataset import DataSet
  from fastNLP.io.data_bundle import DataBundle
  from fastNLP.core.log import logger
  from fastNLP.core.collators import Collator
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 2 for calling the TestPaddle obj's underlying member method code with example usage: obj.test_fdl_fastnlp_dataset() without return types