def get_alerts(api_key, start_days_ago, end_days_ago):
    """
    This function retrieves a list of alert IDs for a specified time range.

    Args:
        api_key (str): The API key to authenticate the request.
        start_days_ago (int): The number of days in the past to start retrieving
                              alerts from.
        end_days_ago (int): The number of days in the past to stop retrieving
                            alerts at.

    Returns:
        A list of alert IDs for the specified time range.
    """

    def get_days_ago_timestamp(days_ago):
        days_ago = datetime.datetime.now() - datetime.timedelta(days=days_ago)
        days_ago_timestamp = int(time.mktime(days_ago.timetuple()) * 1000000)
        return str(days_ago_timestamp)

    api_url = (
        "https://helios.cohesity.com/mcm/alerts?alertCategoryList=kSecurity"
        + "&startDateUsecs="
        + get_days_ago_timestamp(start_days_ago)
        + "&endDateUsecs="
        + get_days_ago_timestamp(end_days_ago)
    )
    headers = create_headers(api_key)
    response = requests.get(api_url, headers=headers)
    return [jsObj["id"] for jsObj in response.json()]

    This function retrieves a list of alert IDs for a specified time range.

    Args:
        api_key (str): The API key to authenticate the request.
        start_days_ago (int): The number of days in the past to start retrieving
                              alerts from.
        end_days_ago (int): The number of days in the past to stop retrieving
                            alerts at.

    Returns:
        A list of alert IDs for the specified time range.
    
Solutions/CohesitySecurity/Tests/helios.py