def is_valid(self) -> bool:
        """Return true if none of the value in the hierarchy is invalid."""

        def _is_valid(values: dict[str, tuple[int, Any]]) -> bool:
            for v in values.values():
                if isinstance(v, OrderedDict):
                    if not _is_valid(v):
                        return False
                elif v == SpecialParamValue.INVALID:
                    return False
            return True

        return _is_valid(self.values)
Return true if none of the value in the hierarchy is invalid.
olive/search/search_point.py