code: def test_agent_lb_setter():
      new_agent = agent.Agent(1, 1, 0, 1)
  
      try:
          new_agent.lb = [1]
      except:
          new_agent.lb = np.array([1])
  
      assert new_agent.lb[0] == 1
  
      try:
          new_agent.lb = np.array([1, 2])
      except:
          new_agent.lb = np.array([1])
  
      assert new_agent.lb[0] == 1
  
imports: import sys
  import numpy
  from opytimizer.core import agent
label_desc: Use image node_id 10 for calling a global function with example usage: test_agent_lb_setter() without return types