code: def test_json_config(self, tmpdir):
      config = {"replace_with_kernel_inject": True}
      config_json = create_config_from_dict(tmpdir, config)
  
      engine = deepspeed.init_inference(
          torch.nn.Module(), config=config_json
      )
      assert engine._config.replace_with_kernel_inject
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/tests/unit/inference/test_inference_config.py
imports: import pytest
  import torch
  import deepspeed
  from unit.common import DistributedTest
  from unit.simple_model import create_config_from_dict
label_desc: Use image node_id 4 for calling the TestInferenceConfig obj's underlying member method code with example usage: obj.test_json_config(tmpdir) without return types