def get_title(file):
    """ Returns a string containing the title for the given file.

    Args:
        file(dict): Describes the file.

    Returns:
        String representing the title.
    """
    # Use the track title. As a fallback, use the display title.
    title = file.get("track_and_facet_info", {}).get("track_title", file["display_title"])
    return title