code: def test_L_M_matrices_1D_array(model):
      mod = model.from_formula(
          "Histamine0 + Histamine1 + Histamine3 + Histamine5 ~ Drug * Depleted",
          data,
      )
      r = mod.fit(method="svd")
      L = np.array([1, 0, 0, 0, 0, 0])
      assert_raises(
          ValueError, r.mv_test, hypotheses=[["Drug", L, None]]
      )
      L = np.array([[1, 0, 0, 0, 0, 0]])
      M = np.array([1, 0, 0, 0, 0, 0])
      assert_raises(ValueError, r.mv_test, hypotheses=[["Drug", L, M]])
  
imports: import os.path
  import numpy
  import pandas
  import pytest
  from statsmodels.regression.linear_model import OLS
  from statsmodels.multivariate.multivariate_ols import _MultivariateOLS, MultivariateLS
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_raises
  import patsy
label_desc: Use image node_id 6 for calling a global function with example usage: test_L_M_matrices_1D_array(model) without return types