parameters: (self, node)
docstring: If there is a single path in the tree,
          return True, else return False.
docstring_summary: If there is a single path in the tree,
          return True, else return False.
docstring_tokens: If there is a single path in the tree return True else return False .
function: def _tree_has_single_path(self, node):
          """
          If there is a single path in the tree,
          return True, else return False.
          """
          num_children = len(node.children)
          if num_children > 1:
              return False
          elif num_children == 0:
              return True
          else:
              return True and self._tree_has_single_path(node.children[0])
function_tokens: def _tree_has_single_path ( self , node ) : num_children = len ( node . children ) if num_children > 1 : return False elif num_children == 0 : return True else : return True and self . _tree_has_single_path ( node . children [ 0 ] )