def fixture_close() -> Callable:
    """
    Comparison function.
    :returns: function that checks if two float arrays are close.
    """

    def close(x: np.ndarray, y: np.ndarray):
        """
        Check if two float arrays are close.

        :param x: first float array
        :param y: second float array
        :returns: true if they are close
        """
        assert x.shape == y.shape
        return np.testing.assert_array_almost_equal(x, y)

    return close

    Comparison function.
    :returns: function that checks if two float arrays are close.
    
tests/attacks/evasion/test_laser_attack.py