human
I wrote the below code

    course_id = course_key.to_deprecated_string()
    def replace_course_url(match):
        quote = match.group('quote')
        rest = match.group('rest')
        return ''.join([quote, (('/courses/' + course_id) + '/'), rest, quote])
    return re.sub(_url_replace_regex('/course/'), replace_course_url, text)

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def replace_course_urls(text, course_key):