docstr: :type root: TreeNode
  :type k: int
  :rtype: int
docstr_tok: [":","type","root",":","TreeNode",":","type","k",":","int",":","rtype",":","int"]
code: def kth_smallest(self, root, k):
      """
      :type root: TreeNode
      :type k: int
      :rtype: int
      """
      count = []
      self.helper(root, count)
      return count[k - 1]
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.kth_smallest(root, k) and returns: count