def search_alerts_command(client: Client, args: Dict[(str, Any)]) -> CommandResults:
    "helloworld-search-alerts command: Search alerts in HelloWorld\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['status']`` alert status. Options are 'ACTIVE' or 'CLOSED'\n        ``args['severity']`` alert severity CSV\n        ``args['alert_type']`` alert type\n        ``args['start_time']``  start time as ISO8601 date or seconds since epoch\n        ``args['max_results']`` maximum number of results to return\n\n    :return:\n        A ``CommandResults`` object that is then passed to ``return_results``,\n        that contains alerts\n\n    :rtype: ``CommandResults``\n    "
    status = args.get('status')
    severities: List[str] = HELLOWORLD_SEVERITIES
    severity = args.get('severity', None)
    if severity:
        severities = severity.split(',')
        if (not all(((s in HELLOWORLD_SEVERITIES) for s in severities))):
            raise ValueError(f"severity must be a comma-separated value with the following options: {','.join(HELLOWORLD_SEVERITIES)}")
    alert_type = args.get('alert_type')
    start_time = arg_to_datetime(arg=args.get('start_time'), arg_name='start_time', required=False)
    max_results = arg_to_number(arg=args.get('max_results'), arg_name='max_results', required=False)
    alerts = client.search_alerts(severity=','.join(severities), alert_status=status, alert_type=alert_type, start_time=(int(start_time.timestamp()) if start_time else None), max_results=max_results)
    for alert in alerts:
        if ('created' not in alert):
            continue
        created_time_ms = (int(alert.get('created', '0')) * 1000)
        alert['created'] = timestamp_to_datestring(created_time_ms)
    return CommandResults(outputs_prefix='HelloWorld.Alert', outputs_key_field='alert_id', outputs=alerts)
helloworld-search-alerts command: Search alerts in HelloWorld

: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['status']`` alert status. Options are 'ACTIVE' or 'CLOSED'
    ``args['severity']`` alert severity CSV
    ``args['alert_type']`` alert type
    ``args['start_time']``  start time as ISO8601 date or seconds since epoch
    ``args['max_results']`` maximum number of results to return

:return:
    A ``CommandResults`` object that is then passed to ``return_results``,
    that contains alerts

:rtype: ``CommandResults``
def search_alerts_command(client: Client, args: Dict[(str, Any)]) -> CommandResults:
    "helloworld-search-alerts command: Search alerts in HelloWorld\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['status']`` alert status. Options are 'ACTIVE' or 'CLOSED'\n        ``args['severity']`` alert severity CSV\n        ``args['alert_type']`` alert type\n        ``args['start_time']``  start time as ISO8601 date or seconds since epoch\n        ``args['max_results']`` maximum number of results to return\n\n    :return:\n        A ``CommandResults`` object that is then passed to ``return_results``,\n        that contains alerts\n\n    :rtype: ``CommandResults``\n    "
    status = args.get('status')
    severities: List[str] = HELLOWORLD_SEVERITIES
    severity = args.get('severity', None)
    if severity:
        severities = severity.split(',')
        if (not all(((s in HELLOWORLD_SEVERITIES) for s in severities))):
            raise ValueError(f"severity must be a comma-separated value with the following options: {','.join(HELLOWORLD_SEVERITIES)}")
    alert_type = args.get('alert_type')
    start_time = arg_to_datetime(arg=args.get('start_time'), arg_name='start_time', required=False)
    max_results = arg_to_number(arg=args.get('max_results'), arg_name='max_results', required=False)
    alerts = client.search_alerts(severity=','.join(severities), alert_status=status, alert_type=alert_type, start_time=(int(start_time.timestamp()) if start_time else None), max_results=max_results)
    for alert in alerts:
        if ('created' not in alert):
            continue
        created_time_ms = (int(alert.get('created', '0')) * 1000)
        alert['created'] = timestamp_to_datestring(created_time_ms)
    return CommandResults(outputs_prefix='HelloWorld.Alert', outputs_key_field='alert_id', outputs=alerts)