code: def read_zero_config_deprecated(param_dict):
      zero_config_dict = {}
      zero_config_dict["stage"] = (
          1 if param_dict[ZERO_OPTIMIZATION] else 0
      )
      if zero_config_dict["stage"] > 0:
          zero_config_dict["allgather_bucket_size"] = get_scalar_param(
              param_dict, "allgather_size", 5e8
          )
      logger.warning(
          "DeepSpeedConfig: this format of ZeRO optimization setup is deprecated. Please use the following format: {}".format(
              ZERO_FORMAT
          )
      )
      return zero_config_dict
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/runtime/zero/config.py
imports: from pydantic import Field, validator
  import sys
  from typing import Optional
  from enum import Enum
  from deepspeed.runtime.config_utils import get_scalar_param, pp_int, DeepSpeedConfigModel
  from deepspeed.utils import logger
  from .offload_config import DeepSpeedZeroOffloadParamConfig, DeepSpeedZeroOffloadOptimizerConfig, OffloadDeviceEnum
label_desc: Use image node_id 1 for calling a global function with example usage: read_zero_config_deprecated(param_dict) and returns: zero_config_dict