class_docstr: A Root node that holds records.
  
  It is an exception for when there is only a single node in the tree.
class_docstr_tok: ["A","Root","node","that","holds","records",".","It","is","an","exception","for","when","there","is","only","a","single","node","in","the","tree","."]
code: def convert_to_leaf(self):
      leaf = LeafNode(self._tree_conf, page=self.page)
      leaf.entries = self.entries
      return leaf
  
imports: import abc
  import bisect
  import math
  from typing import Optional
  from .const import ENDIAN, NODE_TYPE_BYTES, USED_PAGE_LENGTH_BYTES, PAGE_REFERENCE_BYTES, TreeConf
  from .entry import Entry, Record, Reference, OpaqueData
label_desc: Use image node_id 2 for calling the LonelyRootNode obj's underlying member method code with example usage: obj.convert_to_leaf() and returns: leaf