code: def test_experiment_config():
      config = NasExperimentConfig("ts", "simplified", "local")
      config.trial_concurrency = 1
      config_json = config.json()
  
      assert config_json["trialCommand"].endswith(" trial")
      assert config_json["executionEngine"] == {"name": "ts"}
      assert config_json["trialConcurrency"] == 1
      assert config_json["trainingService"]["platform"] == "local"
      assert (
          config_json["trainingService"]["trialCommand"]
          == config_json["trialCommand"]
      )
      assert config_json["modelFormat"] == {"name": "simplified"}
  
      assert (
          ExperimentConfig(**config_json).canonical_copy()
          == config.canonical_copy()
      )
  
imports: import pytest
  from nni.experiment.config import *
  from nni.nas.experiment.config import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_experiment_config() without return types