def retrieve_docker_logs(
        container_name: str,
        start_time: str = None,
) -> str:
    """Returns docker logs as a string, for a specific container

    Args:
        container_name (str): Name of the Docker container whose logs are to be checked. Defaults to 'marqo'.
    Returns:
        A str which is the docker logs for the container.
    Raises:
        RuntimeError: If fetching logs fails or times out.
    """
    # a 1-elem mutable object to save the docker logs to:
    log_collection = []

    docker_log_fetcher = attach_docker_logs

    docker_log_fetcher(container_name=container_name, log_collection=log_collection, start_time=start_time)

    if not log_collection:
        raise RuntimeError(
            "Fetching logs timed out or failed. log_collection is empty.")

    if docker_log_failure_message in log_collection[0]:
        raise RuntimeError(f"{docker_log_fetcher.__name__} encountered an "
                           f"error retrieving docker logs. {log_collection[0]}")

    return log_collection[0]
Returns docker logs as a string, for a specific container

    Args:
        container_name (str): Name of the Docker container whose logs are to be checked. Defaults to 'marqo'.
    Returns:
        A str which is the docker logs for the container.
    Raises:
        RuntimeError: If fetching logs fails or times out.
    
tests/api_tests/v1/tests/utilities.py