code: def test_config_duplicate_key(tmpdir):
      config_dict = """
      {
          "train_batch_size": 24,
          "train_batch_size": 24,
      }
      """
      config_path = os.path.join(tmpdir, "temp_config.json")
  
      with open(config_path, "w") as jf:
          jf.write("%s" % config_dict)
  
      with pytest.raises(ValueError):
          run_cfg = ds_config.DeepSpeedConfig(config_path)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/tests/unit/runtime/test_ds_config_model.py
imports: import pytest
  import os
  import json
  from pydantic import Field, ValidationError
  from typing import List
  from deepspeed.runtime import config
  from deepspeed.runtime.config_utils import DeepSpeedConfigModel
label_desc: Use image node_id 2 for calling a global function with example usage: test_config_duplicate_key(tmpdir) without return types