code: def test_json_origin(configspace_small, config1):
      for i, origin in enumerate(["test_origin", None]):
          config1.origin = origin
          runhistory = RunHistory()
          runhistory.add(
              config=config1,
              cost=10,
              time=20,
              status=StatusType.SUCCESS,
              instance=1,
              seed=1,
          )
  
          path = f"tests/test_files/test_json_origin_{i}.json"
          runhistory.save(path)
          runhistory.load(path, configspace_small)
  
          assert runhistory.get_configs()[0].origin == origin
  
          os.remove(path)
  
imports: from __future__ import annotations
  import os
  import pickle
  import tempfile
  import pytest
  from smac.runhistory.runhistory import RunHistory, TrialKey
  from smac.runner.abstract_runner import StatusType
label_desc: Use image node_id 14 for calling a global function with example usage: test_json_origin(configspace_small, config1) without return types