import numpy as np

a = np.array(
[[1, 2],
 [3, 4],
 [2, 5]])

v = np.array([2, 5, 2]).reshape(-1, 1)

print(np.logical_or.reduce(a == v, axis=1))