<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def direct_messages_new(self, text, user_id=None, screen_name=None):
 """ Sends a new direct message to the given user from the authenticating user. https://dev.twitter.com/docs/api/1.1/post/direct_messages/new :param str text: (*required*) The text of your direct message. :param str user_id: The ID of the user who should receive the direct message. Required if ``screen_name`` isn't given. :param str screen_name: The screen name of the user who should receive the direct message. Required if ``user_id`` isn't given. :returns: A direct message dict containing the sent direct message. """

        params = {}
        set_str_param(params, 'text', text)
        set_str_param(params, 'user_id', user_id)
        set_str_param(params, 'screen_name', screen_name)
        return self._post_api('direct_messages/new.json', params)