def METHOD_NAME(paths_1, paths_2):
    """
    Check if two paths are equivalent.
    """
    if len(paths_1) != len(paths_2):
        return False
    for path_1, path_2 in zip(paths_1, paths_2):
        if len(path_1) != len(path_2):
            return False
        for path_item_1, path_item_2 in zip(path_1, path_2):
            if path_item_1.display_name != path_item_2.display_name:
                return False
            usage_key_1 = path_item_1.usage_key.replace(
                course_key=modulestore().fill_in_run(path_item_1.usage_key.course_key)
            )
            usage_key_2 = path_item_1.usage_key.replace(
                course_key=modulestore().fill_in_run(path_item_2.usage_key.course_key)
            )
            if usage_key_1 != usage_key_2:
                return False
    return True