code: def test_save_load():
      logging.info("test basic db load/save ...")
      records = get_sample_records(3)
      inp1, res1 = records[0]
      inp2, res2 = records[1]
      inp3, _ = records[2]
  
      _db = database.DummyDatabase()
      _db.flush()
      _db.save(inp1, res1)
      _db.save(inp2, res2)
  
      load1 = _db.load(inp1)
      load2 = _db.load(inp2)
      load3 = _db.load(inp3)
      assert load1 == res1
      assert load2 == res2
      assert load3 is None
      assert load1 != load2
  
file_path: tvm/tests/python/autotvm/test_autotvm_database.py
imports: import copy
  import logging
  from tvm.autotvm import database
  from tvm.autotvm.record import encode, MeasureResult
  from tvm.testing.autotvm import get_sample_records
label_desc: Use image node_id 1 for calling a global function with example usage: test_save_load() without return types