code: def test_multivariate_grouper_test(
      univariate_ts, multivariate_ts, test_fill_rule, max_target_dim
  ) -> None:
      univariate_ds = ListDataset(univariate_ts, freq="1D")
      multivariate_ds = ListDataset(
          multivariate_ts, freq="1D", one_dim_target=False
      )
  
      grouper = MultivariateGrouper(
          test_fill_rule=test_fill_rule,
          num_test_dates=2,
          max_target_dim=max_target_dim,
      )
  
      for grouped_data, multivariate_data in zip(
          grouper(univariate_ds), multivariate_ds
      ):
          assert (
              grouped_data["target"] == multivariate_data["target"]
          ).all()
  
          assert grouped_data["start"] == multivariate_data["start"]
  
imports: import numpy
  import pytest
  from gluonts.dataset.common import ListDataset
  from gluonts.dataset.multivariate_grouper import MultivariateGrouper
label_desc: Use image node_id 2 for calling a global function with example usage: test_multivariate_grouper_test(univariate_ts, multivariate_ts, test_fill_rule, max_target_dim) without return types