code: def _value_to_pb(value, proto_type):
      
      data_type_pb = getattr(google_dot_protobuf_dot_wrappers__pb2, proto_type)()
      ParseDict(value, data_type_pb)
      return data_type_pb
docs: Convert a value to protobuf. e.g. BoolValue, Int32Value.
  
      Args:
          value (dict): A dict that needs to be converted to protobuf.
          proto_type (str): The type of the Protobuf.
  
      Returns:
          An instance of the specified protobuf.