ture&quot;&gt;function &lt;strong&gt;checkHeight&lt;/strong&gt;&lt;span&gt;(TreeMap.Map _self, TreeMap.Entry _root) &lt;/span&gt;&lt;span&gt;internal &lt;/span&gt;&lt;span&gt;view &lt;/span&gt;&lt;span&gt;returns  (uint) &lt;/span&gt;&lt;/code&gt;&lt;hr/&gt;&lt;div class=&quot;description&quot;&gt;&lt;p&gt;Helper function that validate tree integrity: binary search tree and red/black violation. function is implemented recursively and should not be used in production contract code. Binary search tree: 