def GetVersionObject():
  """Gets the version of the SDK by parsing the VERSION file.

  Returns:
    A Yaml object or None if the VERSION file does not exist.
  """
  version_filename = os.path.join(os.path.dirname(google.appengine.__file__),
                                  VERSION_FILE)
  try:
    version_fh = open(version_filename)
  except __HOLE__:
    logging.error('Could not find version file at %s', version_filename)
    return None
  try:
    version = yaml.safe_load(version_fh)
  finally:
    version_fh.close()

  return version
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/sdk_update_checker.py/GetVersionObject