def get_scores(video):
 if isinstance(video, Episode):
  return episode_scores
 elif isinstance(video, Movie):
  return movie_scores
 raise ValueError('video must be an instance of Episode or Movie')

def get_scores ( video ) : if isinstance ( video , Episode ) : return episode_scores elif isinstance ( video , Movie ) : return movie_scores raise ValueError ( 'video must be an instance of Episode or Movie' )
get the scores dict for the given video .