code: def check_feature_matrices(X, Y):
      """checks whether the dimensions of X and Y are consistent
  
      Parameters
      ----------
      X, Y arrays of shape (n1, p) and (n2, p)
      where p = common dimension of the features
      """
      if np.size(X) == X.shape[0]:
          X = np.reshape(X, (np.size(X), 1))
      if np.size(Y) == Y.shape[0]:
          Y = np.reshape(Y, (np.size(Y), 1))
      if X.shape[1] != Y.shape[1]:
          raise ValueError("X.shape[1] should = Y.shape[1]")
  
file_path: nipy/nipy/algorithms/graph/bipartite_graph.py
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: check_feature_matrices(X, Y) without return types