code: def dependency_parsing(doc):
      pred_whole = set()
      output = {
          "text": [],
          "dep_": [],
          "head.text": [],
          "head.pos_": [],
          "children": [],
      }
      for token in doc:
          children = str([child for child in token.children])
          output["text"].append(token.text)
          output["dep_"].append(token.dep_)
          output["head.text"].append(token.head.text)
          output["head.pos_"].append(token.head.pos_)
          output["children"].append(children)
          pred_whole.add(
              (
                  token.text,
                  token.dep_,
                  token.head.text,
                  token.head.pos_,
                  children,
              )
          )
      return pred_whole, output
  
file_path: mindsdb/mindsdb/integrations/handlers/spacy_handler/spacy_handler.py
imports: import spacy
  import pandas
  from mindsdb.integrations.libs.base import BaseMLEngine
  from typing import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: dependency_parsing(doc) and returns: pred_whole,  output