code: def construct_negatives(
      input_file, output_file, num_passages, num_negatives
  ):
      qrels = pd.read_csv(input_file, delimiter="\t", header=None)
      with open(output_file, "w") as f:
          for i in range(len(qrels)):
              query_id, rel_passage_id = qrels[0][i], qrels[2][i]
              negatives = np.random.randint(
                  num_passages, size=num_negatives
              )
              output_ids = [
                  query_id,
                  rel_passage_id,
              ] + negatives.tolist()
              output_str = [str(id_) for id_ in output_ids]
              print("\t".join(output_str), file=f)
  
imports: import argparse
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: construct_negatives(input_file, output_file, num_passages, num_negatives) without return types