code: def get_paths(src):
      """Generates root-to-leaf paths, given a treebank in string format. Note that
      get_path is an iterator and does not return all the paths simultaneously.
  
      :param src: str: treebank
      """
  
      st = list()
      tmp = ""
      for let in src:
          if let == "(":
              if tmp != "":
                  st.append(tmp)
                  tmp = ""
          elif let == ")":
              if tmp != "":
                  st.append(tmp)
                  yield st
              st = st[: -1 - (tmp != "")]
              tmp = ""
          elif let == " ":
              if tmp != "":
                  st.append(tmp)
                  tmp = ""
          else:
              tmp += let
  
label_desc: Use image node_id 2 for calling a global function with example usage: get_paths(src) without return types