code: def test_picklemap():
      encode = picklemap(typed=False, flat=True, serializer="dill")
      assert encode(*args, **kwds) == dumps((1, 2, "a", 3, "b", 4))
      encode = picklemap(typed=False, flat=False, serializer="dill")
      assert loads(encode(*args, **kwds)) == loads(dumps((args, kwds)))
      encode = picklemap(typed=True, flat=True, serializer="dill")
      assert encode(*args, **kwds) == dumps(
          (1, 2, "a", 3, "b", 4, type(1), type(2), type(3), type(4))
      )
      encode = picklemap(typed=True, flat=False, serializer="dill")
      assert loads(encode(*args, **kwds)) == loads(
          dumps((args, kwds, (type(1), type(2)), (type(3), type(4))))
      )
  
imports: from klepto.keymaps import *
  from dill import dumps, loads
label_desc: Use image node_id 4 for calling a global function with example usage: test_picklemap() without return types