code: def setup_serial_env():
      # Setup for a serial run
      os.environ["MASTER_ADDR"] = "127.0.0.1"
      os.environ["MASTER_PORT"] = get_master_port()
      os.environ["LOCAL_RANK"] = "0"
      os.environ["RANK"] = "0"
      os.environ["WORLD_SIZE"] = "1"
  
imports: import os
  from types import SimpleNamespace
  import torch
  import pytest
  import deepspeed
  from deepspeed.runtime.zero.partition_parameters import ZeroParamStatus, partitioned_param_data_shape
  import deepspeed.comm
  from unit.common import DistributedTest, get_master_port
label_desc: Use image node_id 1 for calling a global function with example usage: setup_serial_env() without return types