code: def test_has_epochs():
      param = HasEpochs()
      assert param.get_epochs() == 10
      epochs = 42
      param.set_epochs(epochs)
      assert param.get_epochs() == epochs
  
file_path: elephas/tests/ml/test_params.py
imports: from elephas.ml.params import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_has_epochs() without return types