code: def setup_class(cls):
      cls.dict_batch = [
          {
              "str": "1",
              "lst_str": ["1"],
              "int": 1,
              "lst_int": [1],
              "nest_lst_int": [[1]],
              "float": 1.1,
              "lst_float": [1.1],
              "bool": True,
              "numpy": np.ones(1),
              "dict": {"1": "1"},
              "set": {"1"},
              "nested_dict": {"a": 1, "b": [1, 2]},
          },
          {
              "str": "2",
              "lst_str": ["2", "2"],
              "int": 2,
              "lst_int": [1, 2],
              "nest_lst_int": [[1], [1, 2]],
              "float": 2.1,
              "lst_float": [2.1],
              "bool": False,
              "numpy": np.zeros(1),
              "dict": {"1": "2"},
              "set": {"2"},
              "nested_dict": {"a": 2, "b": [1, 2]},
          },
      ]
  
      cls.list_batch = [
          [
              "1",
              ["1"],
              1,
              [1],
              [[1]],
              1.1,
              [1.1],
              True,
              np.ones(1),
              {"1": "1"},
              {"1"},
          ],
          [
              "2",
              ["2", "2"],
              2,
              [2, 2],
              [[1], [1, 2]],
              2.1,
              [2.1],
              False,
              np.ones(2),
              {"2": "2"},
              {"2"},
          ],
      ]
  
imports: import numpy
  import pytest
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH, _NEED_IMPORT_PADDLE, _NEED_IMPORT_JITTOR, _NEED_IMPORT_ONEFLOW
  from fastNLP.core.collators.collator import Collator
  from ...helpers.utils import Capturing
label_desc: Use image node_id 1 for calling the TestCollator obj's underlying member method code with example usage: obj.setup_class(cls) without return types