code: def test_has_mode():
      param = HasMode()
      assert param.get_mode() == "asynchronous"
      mode = "foobar"
      param.set_mode(mode)
      assert param.get_mode() == mode
  
file_path: elephas/tests/ml/test_params.py
imports: from elephas.ml.params import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_has_mode() without return types