def compare_array(a, b, check_type=True):
    """
    Compare two array using zip method.
    """
    if check_type:
        if a.dtype != b.dtype:
            return False, [a, b]

    if len(a) != len(b):
        return False, [a, b]
    else:
        for each in zip(a, b):
            if not np.array_equal(*each):
                return False, each
    return True, None

    Compare two array using zip method.
    
tests/integration/utils/utils.py