'Makes value into a UsageKey inside the specified course.
If value is already a UsageKey, returns that.'

def _make_usage_key(self, course_key, value):

    if isinstance(value, UsageKey):
        return value
    return course_key.make_usage_key_from_deprecated_string(value)
