'Create an internal location for a test problem.'

@staticmethod
def problem_location(problem_url_name, course_key=None):

    if ('i4x:' in problem_url_name):
        return Location.from_deprecated_string(problem_url_name)
    elif course_key:
        return course_key.make_usage_key('problem', problem_url_name)
    else:
        return TEST_COURSE_KEY.make_usage_key('problem', problem_url_name)
