code: def toJson(self) -> Dict:
      result_dict = dict()
      result_dict["orig_phrase"] = self.orig_phrase
      result_dict["clean_phrase"] = self.clean_phrase
      result_dict["head"] = self.head
      result_dict["head_lemma"] = self.head_lemma
      result_dict["head_synonyms"] = list(self.head_synonyms)
      result_dict["head_lemma_synonyms"] = list(
          self.head_lemma_synonyms
      )
      result_dict["head_derivationally"] = list(
          self.head_derivationally
      )
      result_dict["head_lemma_derivationally"] = list(
          self.head_lemma_derivationally
      )
      if self.all_clean_words_synonyms is not None:
          all_as_list = []
          for set_ in self.all_clean_words_synonyms:
              all_as_list.append(list(set_))
          result_dict["all_clean_words_synonyms"] = all_as_list
  
      return result_dict
  
imports: from typing import Set, Dict
label_desc: Use image node_id 4 for calling the WordnetPage obj's underlying member method code with example usage: obj.toJson() and returns: result_dict