code: def check_arrays(Y, V1):
      """Check that the given data can be used for the models
  
      Parameters
      ----------
      Y: array of shape (n_samples, n_tests) or (n_samples)
         the estimated effects
      V1: array of shape (n_samples, n_tests) or (n_samples)
            first-level variance
      """
      if (V1 < 0).any():
          raise ValueError("a negative variance has been provided")
  
      if np.size(Y) == Y.shape[0]:
          Y = Y[:, np.newaxis]
  
      if np.size(V1) == V1.shape[0]:
          V1 = V1[:, np.newaxis]
  
      if Y.shape != V1.shape:
          raise ValueError("Y and V1 do not have the same shape")
      return Y, V1
  
file_path: nipy/nipy/algorithms/statistics/mixed_effects_stat.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: check_arrays(Y, V1) and returns: Y,  V1