code: def test_save_restore(self):
      config = {"n_samples": 10, "parameter_config": [{"name": "x"}]}
      m = rp.RandomProposer(config)
      path = tempfile.mkdtemp()
      self.assertIn(m.get_param()["x"], [0, 1])
  
      sav = os.path.join(path, "test.pkl")
      m.save(sav)
      n = rp.RandomProposer(config)
      n.reload(sav)
      self.assertIn(n.get_param()["x"], [0, 1])
      os.remove(sav)
      os.rmdir(path)
  
file_path: auptimizer/tests/Proposer/test_RandomProposer.py
imports: import unittest
  import os
  import tempfile
  from aup.EE.Job import Job
  from aup.Proposer import RandomProposer
label_desc: Use image node_id 5 for calling the MyTestCase obj's underlying member method code with example usage: obj.test_save_restore() without return types