def METHOD_NAME(file_name, qsub_args, use_default_output_names=False):
  from libtbx import easy_run
  if not use_default_output_names :
    out_file = os.path.splitext(file_name)[0] + "_out.txt"
    err_file = os.path.splitext(file_name)[0] + "_err.txt"
    cmd = "qsub -b y -o \"%s\" -e \"%s\" %s %s" % (out_file, err_file,
      qsub_args, file_name)
  else :
    cmd = "qsub -b y %s %s" % (qsub_args, file_name)
  qsub_out = easy_run.fully_buffered(
    command=cmd).raise_if_errors().stdout_lines
  job_id = None
  for line in qsub_out :
    if line.startswith("Your job"):
      job_id = int(line.split()[2])
      break
  return job_id