code: def test_deepstate_exceptions_with_feat_static_cat(
      estimator, datasets
  ):
      with pytest.raises(Exception):
          estimator()
  
imports: from functools import partial
  import pytest
  from gluonts.mx.model.deepstate import DeepStateEstimator
  from gluonts.mx.trainer import Trainer
  from gluonts.testutil.dummy_datasets import make_dummy_datasets_with_features
label_desc: Use image node_id 2 for calling a global function with example usage: test_deepstate_exceptions_with_feat_static_cat(estimator, datasets) without return types