docstr: 测试字典结构的转换
docstr_tok: ["\u6d4b\u8bd5\u5b57\u5178\u7ed3\u6784\u7684\u8f6c\u6362"]
code: def test_dict_transfer(self):
      """
      测试字典结构的转换
      """
  
      torch_dict = {
          "tensor": torch.rand((3, 4)),
          "list": [torch.rand(6, 4, 2) for i in range(10)],
          "dict": {
              "list": [torch.rand(6, 4, 2) for i in range(10)],
              "tensor": torch.rand((3, 4)),
          },
          "int": 2,
          "string": "test string",
      }
      res = torch2jittor(torch_dict)
      assert isinstance(res, dict)
      self.check_jittor_var(res["tensor"], False)
      assert isinstance(res["list"], list)
      for t in res["list"]:
          self.check_jittor_var(t, False)
      assert isinstance(res["int"], int)
      assert isinstance(res["string"], str)
      assert isinstance(res["dict"], dict)
      assert isinstance(res["dict"]["list"], list)
      for t in res["dict"]["list"]:
          self.check_jittor_var(t, False)
      self.check_jittor_var(res["dict"]["tensor"], 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 6 for calling the TestTorch2Jittor obj's underlying member method code with example usage: obj.test_dict_transfer() without return types