def check_arrays(x, y, err_msg='', verbose=True, check_dtypes=True):
    assert type(x) == type(y), "{x} != {y}".format(x=type(x), y=type(y))
    assert x.dtype == y.dtype, "{x.dtype} != {y.dtype}".format(x=x, y=y)

    return assert_array_equal(x, y, err_msg=err_msg, verbose=True)
Old implementation to test against.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/check_arrays--crossover with--dataset/ETHPy150Open omangin/multimodal/tests/test_window.py/TestConcatOfFrames.old_concat_of_frames