code: def find_inflect_dict(sent_nodes):
      inflect_dict = {}
      for node in sent_nodes:
          if (
              node.dep_ == "aux"
              and node.tag_ == "VBD"
              and (node.head.tag_ == "VBP" or node.head.tag_ == "VB")
          ):
              new_verb = node.head._.inflect("VBD")
              inflect_dict[node.head.text] = new_verb
              inflect_dict[node.text] = ""
          if (
              node.dep_ == "aux"
              and node.tag_ == "VBZ"
              and node.head.tag_ == "VB"
          ):
              new_verb = node.head._.inflect("VBZ")
              inflect_dict[node.head.text] = new_verb
              inflect_dict[node.text] = ""
      return inflect_dict
  
file_path: DeepPavlov/deeppavlov/models/kbqa/sentence_answer.py
imports: import importlib
  import re
  from logging import getLogger
  import pkg_resources
  import spacy
label_desc: Use image node_id 2 for calling a global function with example usage: find_inflect_dict(sent_nodes) and returns: inflect_dict