code: def test_foa_params():
      params = {
          "life_time": 6,
          "area_limit": 30,
          "LSC": 1,
          "GSC": 1,
          "transfer_rate": 0.1,
      }
  
      new_foa = foa.FOA(params=params)
  
      assert new_foa.life_time == 6
  
      assert new_foa.area_limit == 30
  
      assert new_foa.LSC == 1
  
      assert new_foa.GSC == 1
  
      assert new_foa.transfer_rate == 0.1
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_foa.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import foa
  from opytimizer.spaces import search
label_desc: Use image node_id 1 for calling a global function with example usage: test_foa_params() without return types