def get_project_id():
  project_file = None
  project_id = None
  try:
    project_file = open(PROJECT_FILE, 'r')
    project_id = project_file.read()
  except IOError:
    project_file = open(PROJECT_FILE, 'w')
    project_id = raw_input(
        'Enter your Cloud Storage project id (found in the API console): ')
    project_file.write(project_id)
  project_file.close()
  return project_id
Retrieves Cloud Storage project id from user or file.
dataset/ETHPy150Open googlearchive/storage-getting-started-python/main.py/get_project_id