code: def test_zero_config_offload_configs():
      config = DeepSpeedZeroConfig()
      assert config.offload_param == None
      assert config.offload_optimizer == None
  
      config = DeepSpeedZeroConfig(
          **{"offload_param": None, "offload_optimizer": None}
      )
      assert config.offload_param == None
      assert config.offload_optimizer == None
  
      config = DeepSpeedZeroConfig(
          **{"offload_param": {}, "offload_optimizer": {}}
      )
      assert isinstance(
          config.offload_param, DeepSpeedZeroOffloadParamConfig
      )
      assert isinstance(
          config.offload_optimizer, DeepSpeedZeroOffloadOptimizerConfig
      )
  
imports: from deepspeed.runtime.zero.config import DeepSpeedZeroConfig, DeepSpeedZeroOffloadParamConfig, DeepSpeedZeroOffloadOptimizerConfig
label_desc: Use image node_id 4 for calling a global function with example usage: test_zero_config_offload_configs() without return types