code: def setup_class(cls):
      devices = [0, 1]
      output_from_new_proc = "all"
  
      launcher = FleetLauncher(
          devices=devices, output_from_new_proc=output_from_new_proc
      )
      cls.local_rank = int(os.getenv("PADDLE_RANK_IN_NODE", "0"))
      if cls.local_rank == 0:
          launcher = FleetLauncher(devices, output_from_new_proc)
          launcher.launch()
      dist.fleet.init(is_collective=True)
      dist.barrier()
  
file_path: fastNLP/tests/core/drivers/paddle_driver/test_dist_utils.py
imports: import os
  import sys
  import signal
  import pytest
  import traceback
  import numpy
  from fastNLP.core.drivers.paddle_driver.dist_utils import _tensor_to_object, _object_to_tensor, fastnlp_paddle_all_gather, fastnlp_paddle_broadcast_object
  from fastNLP.core.drivers.paddle_driver.fleet_launcher import FleetLauncher
  from tests.helpers.utils import magic_argv_env_context
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
label_desc: Use image node_id 1 for calling the TestAllGatherAndBroadCast obj's underlying member method code with example usage: obj.setup_class(cls) without return types