code: def test_leaf_node_serialization():
      n1 = LeafNode(tree_conf, next_page=66)
      n1.insert_entry(Record(tree_conf, 43, b"43"))
      n1.insert_entry(Record(tree_conf, 42, b"42"))
      assert n1.entries == [
          Record(tree_conf, 42, b"42"),
          Record(tree_conf, 43, b"43"),
      ]
      data = n1.dump()
  
      n2 = LeafNode(tree_conf, data=data)
      assert n1.entries == n2.entries
      assert n1.next_page == n2.next_page == 66
  
file_path: bplustree/tests/test_node.py
imports: import pytest
  from bplustree.const import TreeConf, ENDIAN
  from bplustree.entry import Record, Reference, OpaqueData
  from bplustree.node import Node, LonelyRootNode, RootNode, InternalNode, LeafNode, FreelistNode, OverflowNode
  from bplustree.serializer import IntSerializer
label_desc: Use image node_id 3 for calling a global function with example usage: test_leaf_node_serialization() without return types