code: def test_exception_multivariate_when_inputs_have_different_length():
      """
      Test that an exception is raised when `time_Series` and `other` have different lenth.
      """
  
      time_series = pd.Series(range(10), name="series_1")
      other = pd.DataFrame(
          {"series_2": range(5), "series_3": [9, 2, 3, 8, 2]}
      )
  
      err_msg = re.escape(
          "`time_series` and `other` must have the same length."
      )
      with pytest.raises(ValueError, match=err_msg):
          multivariate_time_series_corr(
              time_series=time_series, other=other, lags=5
          )
  
imports: import re
  import pytest
  import pandas
  from skforecast.utils.utils import multivariate_time_series_corr
label_desc: Use image node_id 3 for calling a global function with example usage: test_exception_multivariate_when_inputs_have_different_length() without return types