code: def test_zero_offload_optimizer_config_pipeline():
      config = DeepSpeedZeroOffloadOptimizerConfig()
      assert config.pipeline == False
  
      config = DeepSpeedZeroOffloadOptimizerConfig(
          **{"pipeline_read": True, "pipeline_write": False}
      )
      assert config.pipeline == True
  
      config = DeepSpeedZeroOffloadOptimizerConfig(
          **{"pipeline_read": False, "pipeline_write": True}
      )
      assert config.pipeline == True
  
      config = DeepSpeedZeroOffloadOptimizerConfig(
          **{"pipeline_read": True, "pipeline_write": True}
      )
      assert config.pipeline == True
  
imports: from deepspeed.runtime.zero.config import DeepSpeedZeroConfig, DeepSpeedZeroOffloadParamConfig, DeepSpeedZeroOffloadOptimizerConfig
label_desc: Use image node_id 5 for calling a global function with example usage: test_zero_offload_optimizer_config_pipeline() without return types