code: def set(self, value):
          
          value = utils.data_factory(value)
          self._message.set_body_value(value)
docs: Set a value as the message body. This can be any
          Python data type and it will be automatically encoded
          into an AMQP type. If a specific AMQP type is required, a
          `types.AMQPType` can be used.
  
          :param data: The data to send in the body.
          :type data: ~uamqp.types.AMQPType