def get_alerts_details(alert_ids, api_key):
    """
    This function retrieves details for a batch of alerts, specified by a
    list of alert IDs.

    Args:
        alert_ids (list): A list of alert IDs to retrieve details for.
        api_key (str): The API key to authenticate the request.

    Returns:
        A dictionary containing the details for the alerts.
    """
    max_alerts = len(alert_ids)
    assert max_alerts > 0
    alert_ids = ",".join(alert_ids)
    api_url = (
        "https://helios.cohesity.com/mcm/alerts?maxAlerts="
        + str(max_alerts)
        + "&alertIdList="
        + alert_ids
    )
    headers = create_headers(api_key)
    response = requests.get(api_url, headers=headers)
    return response.json() if response.json() else None

    This function retrieves details for a batch of alerts, specified by a
    list of alert IDs.

    Args:
        alert_ids (list): A list of alert IDs to retrieve details for.
        api_key (str): The API key to authenticate the request.

    Returns:
        A dictionary containing the details for the alerts.
    
Solutions/CohesitySecurity/Tests/helios.py