def update_alert_status_command(client: Client, args: Dict[(str, Any)]) -> CommandResults:
    "helloworld-update-alert-status command: Changes the status of an alert\n\n    Changes the status of a HelloWorld alert and returns the updated alert info\n\n    :type client: ``Client``\n    :param Client: HelloWorld client to use\n\n    :type args: ``Dict[str, Any]``\n    :param args:\n        all command arguments, usually passed from ``demisto.args()``.\n        ``args['alert_id']`` alert ID to update\n        ``args['status']`` new status, either ACTIVE or CLOSED\n\n    :return:\n        A ``CommandResults`` object that is then passed to ``return_results``,\n        that contains an updated alert\n\n    :rtype: ``CommandResults``\n    "
    alert_id = args.get('alert_id', None)
    if (not alert_id):
        raise ValueError('alert_id not specified')
    status = args.get('status', None)
    if (status not in ('ACTIVE', 'CLOSED')):
        raise ValueError('status must be either ACTIVE or CLOSED')
    alert = client.update_alert_status(alert_id, status)
    if ('updated' in alert):
        updated_time_ms = (int(alert.get('updated', '0')) * 1000)
        alert['updated'] = timestamp_to_datestring(updated_time_ms)
    readable_output = tableToMarkdown(f'HelloWorld Alert {alert_id}', alert)
    return CommandResults(readable_output=readable_output, outputs_prefix='HelloWorld.Alert', outputs_key_field='alert_id', outputs=alert)
helloworld-update-alert-status command: Changes the status of an alert

Changes the status of a HelloWorld alert and returns the updated alert info

:type client: ``Client``
:param Client: HelloWorld client to use

:type args: ``Dict[str, Any]``
:param args:
    all command arguments, usually passed from ``demisto.args()``.
    ``args['alert_id']`` alert ID to update
    ``args['status']`` new status, either ACTIVE or CLOSED

:return:
    A ``CommandResults`` object that is then passed to ``return_results``,
    that contains an updated alert

:rtype: ``CommandResults``
def update_alert_status_command(client: Client, args: Dict[(str, Any)]) -> CommandResults:
    "helloworld-update-alert-status command: Changes the status of an alert\n\n    Changes the status of a HelloWorld alert and returns the updated alert info\n\n    :type client: ``Client``\n    :param Client: HelloWorld client to use\n\n    :type args: ``Dict[str, Any]``\n    :param args:\n        all command arguments, usually passed from ``demisto.args()``.\n        ``args['alert_id']`` alert ID to update\n        ``args['status']`` new status, either ACTIVE or CLOSED\n\n    :return:\n        A ``CommandResults`` object that is then passed to ``return_results``,\n        that contains an updated alert\n\n    :rtype: ``CommandResults``\n    "
    alert_id = args.get('alert_id', None)
    if (not alert_id):
        raise ValueError('alert_id not specified')
    status = args.get('status', None)
    if (status not in ('ACTIVE', 'CLOSED')):
        raise ValueError('status must be either ACTIVE or CLOSED')
    alert = client.update_alert_status(alert_id, status)
    if ('updated' in alert):
        updated_time_ms = (int(alert.get('updated', '0')) * 1000)
        alert['updated'] = timestamp_to_datestring(updated_time_ms)
    readable_output = tableToMarkdown(f'HelloWorld Alert {alert_id}', alert)
    return CommandResults(readable_output=readable_output, outputs_prefix='HelloWorld.Alert', outputs_key_field='alert_id', outputs=alert)