import numpy as np
s1 = """
import numpy as np
a=np.random.randint(0,200,100)
b1=np.random.randint(0,100,50)
np.intersect1d(b1,a)
"""
Return values from array based on indices of common values in two other arrays