def _opt_call_from_base_type(self, value):
    if isinstance(value, _BaseValue):
      value = self._call_from_base_type(value.b_val)
    return value
Call _from_base_type() if necessary.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/Property._opt_call_from_base_type