code: def test_json_encoder_dict_no_sort():
      val0 = {nan: 0, "key_1": 1, "abc": 2, "key_0": 3}
      rep0 = Serializer().serialize(val0)
  
      assert (
          serialize_json(rep0)
          == """\
  {"type":"map","entries":[[{"type":"number","value":"nan"},0],["key_1",1],["abc",2],["key_0",3]]}\
  """
      )
  
imports: from __future__ import annotations
  import pytest
  from math import nan
  from bokeh.core.json_encoder import serialize_json
  from bokeh.core.serialization import Serializer
label_desc: Use image node_id 2 for calling a global function with example usage: test_json_encoder_dict_no_sort() without return types