def validate_project_id(self, constraint, project_id):
    _assert_condition(project_id, 'The project id is missing')
    _assert_valid_utf8(project_id, 'project id')
    _assert_string_not_too_long(project_id, datastore_pbs.MAX_DATASET_ID_LENGTH,
                                'project id')
    _assert_condition(_PROJECT_ID_RE.match(project_id),
                      'Illegal string "%s" in project id.' % project_id)



    if not constraint.reserved_key_allowed:
      _assert_string_not_reserved(project_id, 'project id')
Validates a project ID.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/cloud_datastore_validator.py/_EntityValidator.validate_project_id