code: def write_mining_files(name, ids, dups):
      with open(
          "quora-IR-dataset/duplicate-mining/" + name + "_corpus.tsv",
          "w",
          encoding="utf8",
      ) as fOut:
          fOut.write("qid\tquestion\n")
          for id in ids:
              fOut.write("{}\t{}\n".format(id, sentences[id]))
  
      with open(
          "quora-IR-dataset/duplicate-mining/"
          + name
          + "_duplicates.tsv",
          "w",
          encoding="utf8",
      ) as fOut:
          fOut.write("qid1\tqid2\n")
          for a, b in dups:
              fOut.write("{}\t{}\n".format(a, b))
  
file_path: sentence-transformers/examples/training/quora_duplicate_questions/create_splits.py
imports: import csv
  from collections import defaultdict
  import random
  import os
  from sentence_transformers import util
label_desc: Use image node_id 3 for calling a global function with example usage: write_mining_files(name, ids, dups) without return types