class_docstr: 测试 TorchDeepSpeedDriver 一些简单函数的测试类，基本都是测试能否运行、是否存在 import 错误等问题
class_docstr_tok: ["\u6d4b\u8bd5","TorchDeepSpeedDriver","\u4e00\u4e9b\u7b80\u5355\u51fd\u6570\u7684\u6d4b\u8bd5\u7c7b\uff0c\u57fa\u672c\u90fd\u662f\u6d4b\u8bd5\u80fd\u5426\u8fd0\u884c\u3001\u662f\u5426\u5b58\u5728","import","\u9519\u8bef\u7b49\u95ee\u9898"]
docstr: 简单测试多个函数
docstr_tok: ["\u7b80\u5355\u6d4b\u8bd5\u591a\u4e2a\u51fd\u6570"]
code: def test_simple_functions(self):
      """
      简单测试多个函数
      """
  
      """
          测试 move_data_to_device 函数。这个函数仅调用了 torch_move_data_to_device ，测试例在
          tests/core/utils/test_torch_utils.py中，就不重复测试了
          """
      self.driver.move_data_to_device(torch.rand((32, 64)))
      dist.barrier()
  
      """
          测试 is_distributed 函数
          """
      assert self.driver.is_distributed() == True
      dist.barrier()
  
      """
          测试 get_no_sync_context 函数
          """
      res = self.driver.get_model_no_sync_context()
      dist.barrier()
  
      """
          测试 is_global_zero 函数
          """
      self.driver.is_global_zero()
      dist.barrier()
  
      """
          测试 unwrap_model 函数
          """
      self.driver.unwrap_model()
      dist.barrier()
  
      """
          测试 get_local_rank 函数
          """
      self.driver.get_local_rank()
      dist.barrier()
  
      """
          测试 all_gather 函数
          详细的测试在 test_dist_utils.py 中完成
          """
      obj = {"rank": self.driver.global_rank}
      obj_list = self.driver.all_gather(obj, group=None)
      for i, res in enumerate(obj_list):
          assert res["rank"] == i
  
      """
          测试 broadcast_object 函数
          详细的函数在 test_dist_utils.py 中完成
          """
      if self.driver.global_rank == 0:
          obj = {"rank": self.driver.global_rank}
      else:
          obj = None
      res = self.driver.broadcast_object(obj, src=0)
      assert res["rank"] == 0
  
imports: import os
  from pathlib import Path
  import pytest
  from fastNLP.core.drivers.torch_driver.deepspeed import DeepSpeedDriver
  from fastNLP.core.samplers import RandomSampler, BucketedBatchSampler, UnrepeatedRandomSampler
  from tests.helpers.models.torch_model import TorchNormalModel_Classification_1
  from tests.helpers.datasets.torch_data import TorchNormalXYDataset
  from tests.helpers.utils import magic_argv_env_context
  from fastNLP.envs.distributed import rank_zero_rm
  from fastNLP import logger
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH, _NEED_IMPORT_DEEPSPEED
label_desc: Use image node_id 2 for calling the TestDeepSpeedDriverFunction obj's underlying member method code with example usage: obj.test_simple_functions() without return types