code: def test_cem_compile():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_cem = cem.CEM()
      new_cem.compile(search_space)
  
      try:
          new_cem.mean = 1
      except:
          new_cem.mean = np.array([1])
  
      assert new_cem.mean == 1
  
      try:
          new_cem.std = 1
      except:
          new_cem.std = np.array([1])
  
      assert new_cem.std == 1
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_cem.py
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.misc import cem
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_cem_compile() without return types