def assert_array_index_eq(left, right):
 assert_eq(left, (pd.Index(right) if isinstance(right, np.ndarray) else right))

def assert_array_index_eq ( left , right ) : assert_eq ( left , ( pd . Index ( right ) if isinstance ( right , np . ndarray ) else right ) )
left and right are equal .