def check_paired_arrays(X, Y):
    X, Y = check_pairwise_arrays(X, Y)
    if X.shape != Y.shape:
        raise ValueError("X and Y should be of same shape. They were "
                         "respectively %r and %r long." % (X.shape, Y.shape))
    return X, Y


# Pairwise distances
Set X and Y appropriately and checks inputs for paired distances
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/metrics/pairwise.py/check_paired_arrays