code: def test_history_save_agents_setter():
      new_history = history.History()
  
      try:
          new_history.save_agents = "a"
      except:
          new_history.save_agents = True
  
      assert new_history.save_agents is True
  
imports: from opytimizer.core import agent
  from opytimizer.utils import history
label_desc: Use image node_id 2 for calling a global function with example usage: test_history_save_agents_setter() without return types