def fixture_less_or_equal():
    """
    Comparison function.
    :returns: function that checks if first array is less or equal than the second.
    """

    def leq(x: np.ndarray, y: np.ndarray) -> bool:
        """
        Compare two float arrays

        :param x: first array
        :param y: second array
        :returns: true if every element of the first array is less or equal than the corresponding element
            of the second array.
        """
        return (x <= y).all()

    return leq

    Comparison function.
    :returns: function that checks if first array is less or equal than the second.
    
tests/attacks/evasion/test_laser_attack.py