def _parse_self_before_accessing(list_method: Callable[..., Any]) -> Callable[..., Any]:
    """Wrapper for original list methods. Forces LazyList to parse itself before accessing them."""

    @wraps(list_method)
    def wrapper(self: "LazyList", *args, **kwargs) -> "LazyList":
        self._parse_up_to(-1)

        return list_method(self, *args, **kwargs)

    return wrapper
Wrapper for original list methods. Forces LazyList to parse itself before accessing them.
cvat/apps/engine/lazy_list.py