code: def get_value(value_proto):
    
    field = value_proto.WhichOneof('value_type')
    if field in __native_value_types:
        return getattr(value_proto, field)
    if field == 'timestamp_value':
      return from_timestamp(value_proto.timestamp_value)
    if field == 'array_value':
      return [get_value(sub_value)
              for sub_value in value_proto.array_value.values]
    return None
docs: Gets the python object equivalent for the given value proto.
  
    Args:
      value_proto: datastore.Value proto message.
  
    Returns:
      the corresponding python object value. timestamps are converted to
      datetime, and datastore.Value is returned for blob_key_value.