code: def save_vocabulary(self, save_path, debug=False):
      def _vocabulary_to_file(path, vocabulary):
          print("🌋 Saving vocabulary")
          with io.open(path, "w", encoding="utf-8") as f:
              if debug:
                  print(
                      f"voc saved in {path}, length: {len(vocabulary)}"
                  )
              for w in tunable_voc:
                  f.write(w + "\n")
  
      print(
          "🌋 Building tunable vocabulary matrix from static vocabulary"
      )
      tunable_voc = self.embed_extractor.tun_voc
      _vocabulary_to_file(
          path=save_path + "tuned_word_vocabulary.txt",
          vocabulary=tunable_voc,
      )
  
      static_voc = self.embed_extractor.stat_voc
      _vocabulary_to_file(
          path=save_path + "static_word_vocabulary.txt",
          vocabulary=static_voc,
      )
  
      tuned_word_embeddings = np.vstack(
          [
              self.embed_extractor.get_stat_word(w)[1]
              for w in tunable_voc
          ]
      )
      print("Saving tunable voc, size:", tuned_word_embeddings.shape)
      np.save(
          save_path + "tuned_word_embeddings", tuned_word_embeddings
      )
  
      static_word_embeddings = np.vstack(
          [
              self.embed_extractor.static_embeddings[w]
              for w in static_voc
          ]
      )
      print("Saving static voc, size:", static_word_embeddings.shape)
      np.save(
          save_path + "static_word_embeddings", static_word_embeddings
      )
  
imports: import re
  import argparse
  import time
  import os
  import io
  import pickle
  import spacy
  import numpy
  from tqdm import tqdm
  from neuralcoref.train.compat import unicode_
  from neuralcoref.train.document import Mention, Document, Speaker, EmbeddingExtractor, MISSING_WORD, extract_mentions_spans
  from neuralcoref.train.utils import parallel_process
label_desc: Use image node_id 9 for calling the ConllCorpus obj's underlying member method code with example usage: obj.save_vocabulary(save_path, debug) without return types