def METHOD_NAME(self, table_name, title, year):
    """
    Gets a single movie from the table, by title and year.
    :param table_name: The name of the movie table.
    :param title: The title of the movie.
    :param year: The year of the movie's release.
    :return: The requested movie.
    """
    return self.session.execute(
        SimpleStatement(f"SELECT * from {table_name} WHERE title = %s AND year = %s"),
        parameters=[title, year]).one()