def get_book_info(book_id, metadata):
    """
    Returns some basic information about a book given the book id and the metadata dataframe.
    """
    book_info = metadata[metadata['best_book_id'] == book_id][[
        'authors', 'original_publication_year', 'title', 'language_code', 'average_rating', 'image_url']]
    return book_info.to_dict(orient='records')[0]