code: def test_invalid_standardize_1d():
      endog = np.zeros(100) + 10
      endog_pd = pd.Series(endog, name="y1")
  
      # Wrong shape
      options = [
          ([], 10),
          (10, []),
          ([], []),
          ([1, 2], [1.0]),
          ([1], [1, 2.0]),
      ]
      msg = "Invalid value passed for `standardize`: each element must be shaped"
      for standardize in options:
          with pytest.raises(ValueError, match=msg):
              dynamic_factor_mq.DynamicFactorMQ(
                  endog,
                  factors=1,
                  factor_orders=1,
                  idiosyncratic_ar1=False,
                  standardize=standardize,
              )
  
      # Wrong index: ndarray
      options = [
          (pd.Series(10), pd.Series(10)),
          (pd.Series(10, index=["y"]), pd.Series(10, index=["y1"])),
          (pd.Series(10, index=["y1"]), pd.Series(10, index=["y1"])),
          (
              pd.Series([10], index=["y"]),
              pd.Series([10, 1], index=["y1", "y2"]),
          ),
      ]
      msg = (
          "Invalid value passed for `standardize`: if a Pandas Series, must"
          " have index"
      )
      for standardize in options:
          with pytest.raises(ValueError, match=msg):
              dynamic_factor_mq.DynamicFactorMQ(
                  endog,
                  factors=1,
                  factor_orders=1,
                  idiosyncratic_ar1=False,
                  standardize=standardize,
              )
  
      # Wrong index: pd.Series
      options = [
          (pd.Series(10), pd.Series(10)),
          (pd.Series(10, index=["y"]), pd.Series(10, index=["y1"])),
          (pd.Series(10, index=["y"]), pd.Series(10, index=["y"])),
          (
              pd.Series([10], index=["y"]),
              pd.Series([10, 1], index=["y1", "y2"]),
          ),
      ]
      msg = (
          "Invalid value passed for `standardize`: if a Pandas Series, must"
          " have index"
      )
      for standardize in options:
          with pytest.raises(ValueError, match=msg):
              dynamic_factor_mq.DynamicFactorMQ(
                  endog_pd,
                  factors=1,
                  factor_orders=1,
                  idiosyncratic_ar1=False,
                  standardize=standardize,
              )
  
imports: from statsmodels.compat.pandas import MONTH_END, QUARTER_END, assert_frame_equal, assert_series_equal
  import numpy
  from numpy.testing import assert_, assert_allclose, assert_equal
  import pandas
  import pytest
  from statsmodels.regression.linear_model import OLS
  from statsmodels.tools import add_constant
  from statsmodels.tsa.statespace import dynamic_factor, dynamic_factor_mq, sarimax
  from statsmodels.tsa.statespace.tests import test_dynamic_factor_mq_monte_carlo
label_desc: Use image node_id 18 for calling a global function with example usage: test_invalid_standardize_1d() without return types