code: def test_out_of_bounds(
      bounds, positions_inbound, positions_out_of_bound
  ):
      hm = HandlerMixin()
      out_of_bounds = hm._out_of_bounds
      idx_inbound = out_of_bounds(positions_inbound, bounds)
      idx_out_of_bounds = out_of_bounds(positions_out_of_bound, bounds)
  
      print(bh_strategies)
      expected_idx = (
          (np.array([2, 3, 5]), np.array([1, 2, 0])),
          (np.array([0, 1, 2, 3, 4, 5]), np.array([0, 1, 1, 2, 1, 0])),
      )
      assert np.ravel(idx_inbound[0]).size == 0
      assert np.ravel(idx_inbound[1]).size == 0
      assert (
          np.ravel(idx_out_of_bounds[0]).all()
          == np.ravel(expected_idx[0]).all()
      )
      assert (
          np.ravel(idx_out_of_bounds[1]).all()
          == np.ravel(expected_idx[1]).all()
      )
  
imports: import pytest
  import inspect
  import numpy
  from collections import OrderedDict
  from pyswarms.backend.handlers import BoundaryHandler, VelocityHandler, OptionsHandler, HandlerMixin
  import pyswarms.backend.handlers
label_desc: Use image node_id 1 for calling a global function with example usage: test_out_of_bounds(bounds, positions_inbound, positions_out_of_bound) without return types