class_docstr: Testing non-Trainer DeepSpeed integration
class_docstr_tok: ["Testing","non-Trainer","DeepSpeed","integration"]
code: def setUp(self):
      super().setUp()
  
      master_port = get_master_port(real_launcher=False)
      self.dist_env_1_gpu = {
          "MASTER_ADDR": "localhost",
          "MASTER_PORT": master_port,
          "RANK": "0",
          "LOCAL_RANK": "0",
          "WORLD_SIZE": "1",
      }
  
imports: import dataclasses
  import io
  import itertools
  import json
  import os
  import unittest
  from copy import deepcopy
  from functools import partial
  import datasets
  from parameterized import parameterized
  import tests.trainer.test_trainer
  from tests.trainer.test_trainer import TrainerIntegrationCommon
  from transformers import AutoModel, TrainingArguments, is_torch_available, logging
  from transformers.integrations.deepspeed import HfDeepSpeedConfig, is_deepspeed_available, unset_hf_deepspeed_config
  from transformers.testing_utils import CaptureLogger, CaptureStd, CaptureStderr, LoggingLevel, TestCasePlus, backend_device_count, execute_subprocess_async, mockenv_context, require_deepspeed, require_optuna, require_torch_accelerator, require_torch_multi_accelerator, slow, torch_device
  from transformers.trainer_utils import get_last_checkpoint, set_seed
  from transformers.utils import SAFE_WEIGHTS_NAME, is_torch_bf16_available_on_device
label_desc: Use image node_id 1 for calling the CoreIntegrationDeepSpeed obj's underlying member method code with example usage: obj.setUp() without return types