code: def main():
      parser = argparse.ArgumentParser(
          description="Negative passages construction"
      )
      parser.add_argument(
          "--data",
          type=str,
          default="msmarco_dataset",
          help="path to folder with data",
      )
      parser.add_argument(
          "--num_passages",
          type=int,
          default=8841823,
          help="total number of passages",
      )
      parser.add_argument(
          "--num_negatives",
          type=int,
          default=10,
          help="number of negatives per positive",
      )
      args = parser.parse_args()
  
      for mode in ["train", "dev"]:
          construct_negatives(
              input_file=f"{args.data}/qrels.{mode}.tsv",
              output_file=f"{args.data}/query2passages.{mode}.tsv",
              num_passages=args.num_passages,
              num_negatives=args.num_negatives,
          )
  
imports: import argparse
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types