def _validate(self, value):
    if not isinstance(value, datetime.time):
      raise datastore_errors.BadValueError('Expected time, got %r' %
                                           (value,))
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/TimeProperty._validate/original