def CheckOutputFile(filename):
  full_path = os.path.abspath(filename)
  if os.path.exists(full_path):
    raise FileExistsError('%s: output file exists' % filename)
  elif not os.access(os.path.dirname(full_path), os.W_OK):
    raise FileNotWritableError(
        '%s: not writable' % os.path.dirname(full_path))
Extract the details for a CSV Import Task
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/bulkloader.py/CheckOutputFile--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3/s3import.py/S3BulkImporter.extract_csv_import_line