code: def main(input_path: str, output_path: str, min_word_frequency: int):
      if input_path is not None:
          input_path = cached_path(input_path)
          input_path = ensure_path(input_path)
  
      probs, oov_prob = (
          read_freqs(input_path, min_freq=min_word_frequency)
          if input_path is not None
          else ({}, -20)
      )
  
      with open(output_path, "w") as _jsonl_file:
          _jsonl_file.write(
              json.dumps(
                  {
                      "lang": "en",
                      "settings": {"oov_prob": -20.502029418945312},
                  }
              )
          )
          _jsonl_file.write("\n")
  
          for word, prob in probs.items():
              _jsonl_file.write(
                  json.dumps({"orth": word, "prob": prob})
              )
              _jsonl_file.write("\n")
  
file_path: scispacy/scripts/convert_freqs.py
imports: import argparse
  import math
  import json
  from ast import literal_eval
  from tqdm import tqdm
  from preshed.counter import PreshCounter
  from spacy.util import ensure_path
  from scispacy.file_cache import cached_path
label_desc: Use image node_id 2 for calling a global function with example usage: main(input_path, output_path, min_word_frequency) without return types