code: def test_deepar_no_batches(dataset):
      estimator = DeepAREstimator(
          prediction_length=10,
          freq="H",
          trainer=Trainer(epochs=1, num_batches_per_epoch=1),
      )
  
      with pytest.raises(GluonTSDataError):
          estimator.train(dataset)
  
imports: import pytest
  from gluonts.exceptions import GluonTSDataError
  from gluonts.mx.model.deepar import DeepAREstimator
  from gluonts.mx.trainer import Trainer
label_desc: Use image node_id 1 for calling a global function with example usage: test_deepar_no_batches(dataset) without return types