code: def test_temp_config_json(tmpdir):
      config_dict = {
          "train_batch_size": 1,
      }
      config_path = create_config_from_dict(tmpdir, config_dict)
      config_json = json.load(open(config_path, "r"))
      assert "train_batch_size" in config_json
  
imports: import os
  import pytest
  import json
  import hjson
  import argparse
  from deepspeed.runtime.zero.config import DeepSpeedZeroConfig
  from deepspeed.accelerator import get_accelerator
  from unit.common import DistributedTest, get_test_path
  from unit.simple_model import SimpleModel, create_config_from_dict, random_dataloader
  import deepspeed.comm
  import deepspeed
  from deepspeed.runtime.config import DeepSpeedConfig, get_bfloat16_enabled
label_desc: Use image node_id 4 for calling a global function with example usage: test_temp_config_json(tmpdir) without return types