code: def test_build_lag_df_exception():
      df = pd.DataFrame({"x": range(10), "y": range(100, 110)})
      with pytest.raises(
          ValueError,
          match="at least one of 'max_order' or 'orders' must be provided",
      ):
          build_lag_df(
              value_col="x", df=df, max_order=None, orders=None
          )
  
imports: import numpy
  import pandas
  import pytest
  from greykite.common.features.timeseries_lags import build_agg_lag_df
  from greykite.common.features.timeseries_lags import build_autoreg_df
  from greykite.common.features.timeseries_lags import build_autoreg_df_multi
  from greykite.common.features.timeseries_lags import build_lag_df
  from greykite.common.features.timeseries_lags import min_max_lag_order
  from greykite.common.python_utils import assert_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_build_lag_df_exception() without return types