code: def test_keymap():
      encode = keymap(typed=False, flat=True, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == (1, 2, "a", 3, "b", 4)
      encode = keymap(typed=False, flat=False, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == (args, kwds)
      encode = keymap(typed=True, flat=True, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == (
          1,
          2,
          "a",
          3,
          "b",
          4,
          type(1),
          type(2),
          type(3),
          type(4),
      )
      encode = keymap(typed=True, flat=False, sentinel=NOSENTINEL)
      assert encode(*args, **kwds) == (
          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 1 for calling a global function with example usage: test_keymap() without return types