def METHOD_NAME(self, target):
    x = paddle.to_tensor(self.x_np, stop_gradient=False)
    y = paddle.to_tensor(self.y_np, stop_gradient=False)
    def get_unsqueeze_axis(x_rank, y_rank, axis):
        self.assertTrue(
            x_rank >= y_rank,
            "The rank of x should be greater or equal to that of y.")
        axis = axis if axis >= 0 else x_rank - y_rank
        unsqueeze_axis = np.arange(0, axis).tolist() + np.arange(
            axis + y_rank, x_rank).tolist()
        return unsqueeze_axis
    unsqueeze_axis = get_unsqueeze_axis(
        len(x.shape), len(y.shape), self.case["axis"])
    y_t = paddle.unsqueeze(
        y, axis=unsqueeze_axis) if len(unsqueeze_axis) > 0 else y
    out = paddle.logical_and(x, y_t)
    self.paddle_outputs = [out]