<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _value_to_python(value):
 """Converts a google.protobuf.Value to a native Python object."""


  assert isinstance(value, struct_pb2.Value)
  field = value.WhichOneof('kind')
  if field == 'number_value':
    return value.number_value
  elif field == 'string_value':
    return value.string_value
  elif field == 'bool_value':
    return value.bool_value
  else:
    raise ValueError('Unknown struct_pb2.Value oneof field set: %s' % field)