code: def test_has_optimizer_config():
      param = HasKerasOptimizerConfig()
      conf = {"foo": "bar"}
      param.set_optimizer_config(conf)
      assert conf == param.get_optimizer_config()
  
file_path: elephas/tests/ml/test_params.py
imports: from elephas.ml.params import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_has_optimizer_config() without return types