def METHOD_NAME(self):
    assert self.telemetry_enabled
    if not self.warning_shown:
        alert_msg = 'Aim collects anonymous usage analytics.'
        opt_out_msg = 'Read how to opt-out here: '
        opt_out_url = 'https://aimstack.readthedocs.io/en/latest/community/telemetry.html'
        line_width = max(len(opt_out_msg), len(alert_msg), len(opt_out_url)) + 8
        logger.warning('-' * line_width)
        logger.warning('{}{}{}'.format(' ' * ((line_width - len(alert_msg)) // 2),
                                       alert_msg,
                                       ' ' * ((line_width - len(alert_msg)) // 2)))
        logger.warning('{}{}{}'.format(' ' * ((line_width - len(opt_out_msg)) // 2),
                                       opt_out_msg,
                                       ' ' * ((line_width - len(opt_out_msg)) // 2)))
        logger.warning('{}{}{}'.format(' ' * ((line_width - len(opt_out_url)) // 2),
                                       opt_out_url,
                                       ' ' * ((line_width - len(opt_out_url)) // 2)))
        logger.warning('-' * line_width)
        with self._autocommit():
            self._profile['telemetry']['warning-shown'] = True