def topic_name_to_id(course, name):
 return '{course}_{run}_{name}'.format(course=course.location.course, run=course.url_name, name=name)

def topic_name_to_id ( course , name ) : return '{course}_{run}_{name}' . format ( course = course . location . course , run = course . url_name , name = name )
given a discussion topic name .