<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_yarn_application_diagnostics_bundle(self, application_ids, ticket_number=None, comments=None):
 """ Collects the Diagnostics data for Yarn applications. @param application_ids: An array of strings containing the ids of the yarn applications. @param ticket_number: If applicable, the support ticket number of the issue being experienced on the cluster. @param comments: Additional comments @return: Reference to the submitted command. @since: API v10 """

    args = dict(applicationIds = application_ids,
                ticketNumber = ticket_number,
                comments = comments)

    return self._cmd('yarnApplicationDiagnosticsCollection', api_version=10, data=args)