code: def test(self):
      config_dict = {
          "train_batch_size": 2,
          "steps_per_print": 1,
          "optimizer": {"type": "Lamb", "params": {"lr": 0.00015}},
          "gradient_clipping": 1.0,
          "elasticity": {
              "enabled": True,
              "max_train_batch_size": 4,
              "micro_batch_sizes": [1, 2, 3, 4],
              "min_gpus": 1,
              "max_gpus": 4,
              "min_time": 20,
              "version": 0.1,
          },
      }
      hidden_dim = 10
  
      model = SimpleModel(hidden_dim, empty_grad=False)
  
      with pytest.raises(deepspeed.elasticity.config.ElasticityError):
          model, _, _, _ = deepspeed.initialize(
              config=config_dict,
              model=model,
              model_parameters=model.parameters(),
          )
  
imports: import pytest
  import deepspeed
  from unit.common import DistributedTest
  from deepspeed.git_version_info import version
  import os
  from unit.simple_model import SimpleModel
  from deepspeed.ops.op_builder import FusedAdamBuilder
label_desc: Use image node_id 1 for calling the TestNonElasticBatchParams obj's underlying member method code with example usage: obj.test() without return types