code: def assert_invalid_param(
      param_name: str, param_values: List[Any], exp_msg: str
  ) -> None:
      for x in param_values:
          with pytest.raises(AssertionError) as excinfo:
              Trainer(**{param_name: x})
              assert exp_msg in str(excinfo.value)
  
file_path: gluonts/test/mx/trainer/test_trainer.py
imports: from typing import Any, List
  import pytest
  from gluonts.mx.trainer import Trainer
label_desc: Use image node_id 6 for calling a global function with example usage: assert_invalid_param(param_name, param_values, exp_msg) without return types