def link_reverse_func(reverse_name):
 return (lambda course, reverse_url_func: reverse_url_func(reverse_name, args=[course.id.to_deprecated_string()]))

def link_reverse_func ( reverse_name ) : return ( lambda course , reverse_url_func : reverse_url_func ( reverse_name , args = [ course . id . to_deprecated_string ( ) ] ) )
returns a function that takes in a course and reverse_url_func .