def ValidatePropertyKey(name, value):
 if (not value.has_id_or_name()):
  raise datastore_errors.BadValueError(('Incomplete key found for reference property %s.' % name))

def ValidatePropertyKey ( name , value ) : if ( not value . has_id_or_name ( ) ) : raise datastore_errors . BadValueError ( ( 'Incomplete key found for reference property %s.' % name ) )
raises an exception if the supplied datastore .