code: def get_line_info(tree, max_lines=None):
      
      line_gen = indented_tree_line_generator(tree, max_lines=max_lines)
      line_gen_result = list(zip(*line_gen))
      if line_gen_result:
          return line_gen_result
      else:
          return [], [], []
docs: Shortcut for indented_tree_line_generator() that returns an array of
      start references, an array of corresponding end references (see
      tree_line_generator() docs), and an array of corresponding lines.