code: def write_to_file(proposal_list, filename):
      with open(filename, "w") as f:
          for i in range(len(proposal_list)):
              proposals = proposal_list[i]
              line = "{}\t".format(i)
              for p in proposals:
                  line = "{} {}".format(
                      line, " ".join([str(v) for v in p])
                  )
              f.write(line)
  
imports: import os, sys
  import numpy
  import cv2
  from utils.rpn.bbox_transform import bbox_transform
  from utils.cython_modules.cython_bbox import bbox_overlaps
label_desc: Use image node_id 7 for calling a global function with example usage: write_to_file(proposal_list, filename) without return types