code: def test_bmrfo_chain_foraging():
      new_bmrfo = bmrfo.BMRFO()
  
      boolean_space = boolean.BooleanSpace(n_agents=100, n_variables=2)
  
      chain = new_bmrfo._chain_foraging(
          boolean_space.agents, boolean_space.best_agent.position, 0
      )
  
      assert chain[0].item() is False or chain[0].item() is True
  
file_path: opytimizer/tests/opytimizer/optimizers/boolean/test_bmrfo.py
imports: import numpy
  from opytimark.markers.boolean import Knapsack
  import opytimizer.math.random
  from opytimizer.core import function
  from opytimizer.optimizers.boolean import bmrfo
  from opytimizer.spaces import boolean
label_desc: Use image node_id 4 for calling a global function with example usage: test_bmrfo_chain_foraging() without return types