code: def write_output(filename, tests):
      if not filename:
          return
      print("Writing %s tests into %s" % (len(tests), filename))
      write_tests(filename, tests)
      return filename
  
file_path: cpython/Lib/test/bisect_cmd.py
imports: import argparse
  import datetime
  import os.path
  import math
  import random
  import subprocess
  import sys
  import tempfile
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: write_output(filename, tests) and returns: filename