code: def test_stringmap():
      encode = stringmap(typed=False, flat=True, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == "(1, 2, 'a', 3, 'b', 4)"
      encode = stringmap(typed=False, flat=False, sentinel=NOSENTINEL)
      assert eval(encode(*args, **kwds)) == (args, kwds)
      # res = encode(*args, **kwds)
      # assert res in ("({}, {})".format(str(args),_kwds), "({}, {})".format(str(args),kwds_))
      encode = stringmap(typed=True, flat=True, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == str(
          (1, 2, "a", 3, "b", 4, type(1), type(2), type(3), type(4))
      )
      encode = stringmap(typed=True, flat=False, sentinel=NOSENTINEL)
      assert eval(
          encode(*args, **kwds).replace(str((type(1), type(2))), "''")
      ) == (args, kwds, "", "")
  
imports: from klepto.keymaps import *
  from dill import dumps, loads
label_desc: Use image node_id 3 for calling a global function with example usage: test_stringmap() without return types