def METHOD_NAME(request, slugs: str = ""):
    slug_list = slugs.split("/")
    categories = [get_object_or_404(Category, slug=x) for x in slug_list]
    for i in range(len(categories) - 1, 0, -1):
        parents = categories[i].parents.all()
        if categories[i - 1] not in parents:
            raise Http404(f"Invalid category path, {i}")
    columns = []
    max_depth = len(categories)
    for i, category in enumerate(categories):
        depth = max_depth - i
        path_list = ["."] + [".."] * (depth - 1)
        columns.append(
            Column(
                category,
                list(
                    category.children.order_by(
                        Case(
                            When(type=Category.CategoryType.BACHELOR, then=Value(0)),
                            When(type=Category.CategoryType.MASTER, then=Value(1)),
                            When(
                                type=Category.CategoryType.MASTER_SPECIALIZATION,
                                then=Value(2),
                            ),
                            default=Value(3),
                        ),
                        "name",
                    ).all()
                ),
                depth,
                "/".join(path_list),
            )
        )
    return render(
        request,
        "catalog/finder.html",
        {
            "columns": columns,
            "extra_columns": range(4 - len(columns)),
            "is_archive": categories[0].is_archive,
        },
    )