code: def test_set_default_keyvalue(self):
      d = {}
      nd = utils.set_default_keyvalue("a", "b", d, inplace=False)
      self.assertDictEqual(nd, {"a": "b"})
      self.assertDictEqual(d, {})
      utils.set_default_keyvalue("a", "c", d, inplace=True)
      self.assertDictEqual(d, {"a": "c"})
      utils.set_default_keyvalue("a", "c", nd, inplace=True)
      self.assertDictEqual(nd, {"a": "b"})
  
file_path: auptimizer/tests/test_utils.py
imports: import unittest
  import os
  import sys
  from six import StringIO
  from aup import utils
  import tempfile
label_desc: Use image node_id 7 for calling the UtilTestCase obj's underlying member method code with example usage: obj.test_set_default_keyvalue() without return types