def episode_by_id(episode_id, session=None):
 return session.query(Episode).filter((Episode.id == episode_id)).one()

def episode_by_id ( episode_id , session = None ) : return session . query ( Episode ) . filter ( ( Episode . id == episode_id ) ) . one ( )
return an instance of an episode by querying its id .