docstr: 测试单个张量的转换
docstr_tok: ["\u6d4b\u8bd5\u5355\u4e2a\u5f20\u91cf\u7684\u8f6c\u6362"]
code: def test_tensor_transfer(self):
      """
      测试单个张量的转换
      """
  
      torch_tensor = torch.rand((3, 4, 5))
      res = torch2paddle(torch_tensor)
      self.check_paddle_tensor(res, "cpu", True)
  
      res = torch2paddle(torch_tensor, device="gpu:2", no_gradient=None)
      self.check_paddle_tensor(res, "gpu:2", True)
  
      res = torch2paddle(torch_tensor, device="gpu:2", no_gradient=True)
      self.check_paddle_tensor(res, "gpu:2", True)
  
      res = torch2paddle(
          torch_tensor, device="gpu:2", no_gradient=False
      )
      self.check_paddle_tensor(res, "gpu:2", False)
  
imports: import pytest
  from fastNLP.envs.imports import _NEED_IMPORT_JITTOR, _NEED_IMPORT_PADDLE, _NEED_IMPORT_TORCH
  from fastNLP.modules.mix_modules.utils import paddle2torch, torch2paddle, jittor2torch, torch2jittor
label_desc: Use image node_id 3 for calling the TestTorch2Paddle obj's underlying member method code with example usage: obj.test_tensor_transfer() without return types