code: def set_debug(self, debug):
          
          self.make_request(
              NodeCommandFailed,
              method='create',
              resource='send_diagnostic',
              json=debug.serialize())
docs: Set the debug settings for this node. This should be a modified
          :class:`~Debug` instance. This will take effect immediately on
          the specified node.
          
          :param Debug debug: debug object with specified settings
          :raises NodeCommandFailed: fail to communicate with node
          :return: None
          
          .. seealso:: :class:`~Debug` for example usage