code: def test_manova_test_input_validation():
      mod = MANOVA.from_formula("Basal + Occ + Max ~ Loc", data=X)
      hypothesis = [("test", np.array([[1, 1, 1]]), None)]
      mod.mv_test(hypothesis)
      hypothesis = [("test", np.array([[1, 1]]), None)]
      assert_raises(ValueError, mod.mv_test, hypothesis)
      """
      assert_raises_regex(ValueError,
                          ('Contrast matrix L should have the same number of '
                           'columns as exog! 2 != 3'),
                          mod.mv_test, hypothesis)
      """
      hypothesis = [
          ("test", np.array([[1, 1, 1]]), np.array([[1], [1], [1]]))
      ]
      mod.mv_test(hypothesis)
      hypothesis = [
          ("test", np.array([[1, 1, 1]]), np.array([[1], [1]]))
      ]
      assert_raises(ValueError, mod.mv_test, hypothesis)
      """
      assert_raises_regex(ValueError,
                          ('Transform matrix M should have the same number of '
                           'rows as the number of columns of endog! 2 != 3'),
                          mod.mv_test, hypothesis)
      """
  
file_path: statsmodels/statsmodels/multivariate/tests/test_manova.py
imports: import numpy
  import pandas
  import pytest
  from numpy.testing import assert_almost_equal, assert_raises, assert_allclose
  from statsmodels.multivariate.manova import MANOVA
  from statsmodels.multivariate.multivariate_ols import MultivariateTestResults
  from statsmodels.tools import add_constant
label_desc: Use image node_id 4 for calling a global function with example usage: test_manova_test_input_validation() without return types