<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_location_part(cls, val, regexp):
 """Deprecated. See CourseLocator._check_location_part"""

        cls._deprecation_warning()
        return CourseLocator._check_location_part(val, regexp)