docstr: 测试张量列表的迁移
docstr_tok: ["\u6d4b\u8bd5\u5f20\u91cf\u5217\u8868\u7684\u8fc1\u79fb"]
code: def test_list_transfer(self):
      """
      测试张量列表的迁移
      """
  
      paddle_list = [paddle.rand((6, 4, 2)) for i in range(10)]
  
      res = paddle_move_data_to_device(paddle_list, device="cpu")
      assert isinstance(res, list)
      for r in res:
          self.check_cpu(r)
  
      res = paddle_move_data_to_device(paddle_list, device="gpu:0")
      assert isinstance(res, list)
      for r in res:
          self.check_gpu(r, 0)
  
file_path: fastNLP/tests/core/utils/test_paddle_utils.py
imports: import os
  import pytest
  from fastNLP.core.utils.paddle_utils import _convert_data_device, paddle_to, paddle_move_data_to_device
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 4 for calling the TestPaddleMoveDataToDevice obj's underlying member method code with example usage: obj.test_list_transfer() without return types