code: def testing(data, expected_output, prediction_length, context_length):
      predictions = get_predictions(
          data,
          prediction_length=prediction_length,
          context_length=context_length,
      )
  
      np.testing.assert_equal(predictions, expected_output)
  
imports: import numpy
  import pytest
  from gluonts.dataset.common import ListDataset
  from gluonts.model.trivial.mean import MovingAveragePredictor
label_desc: Use image node_id 2 for calling a global function with example usage: testing(data, expected_output, prediction_length, context_length) without return types