def sanitize_path(*, path: str) -> str:
            """
            Sanitizes the given path, if it starts with "/api/1/" and LOG_SANITIZE_REQUEST_HEADERS is enabled.
            It replaces query parameters with '<sanitized_query_parameters>'.

            :param path: The URL path to be sanitized.
            :return: The sanitized URL path.
            """
            # Handle empty paths
            if not path:
                return path

            # Don't mess with paths that aren't part of the API
            if not path.startswith("/api/1/"):
                return path

            # Skip sanitizing the path if we're told to
            if not app.config.get("LOG_SANITIZE_REQUEST_HEADERS", True):
                return path

            parsed_path = urllib.parse.urlparse(path)
            if parsed_path.query:
                return urllib.parse.urlunparse(
                    (
                        parsed_path.scheme,
                        parsed_path.netloc,
                        parsed_path.path,
                        parsed_path.params,
                        "<sanitized_query_parameters>",
                        parsed_path.fragment
                    )
                )
            return path

            Sanitizes the given path, if it starts with "/api/1/" and LOG_SANITIZE_REQUEST_HEADERS is enabled.
            It replaces query parameters with '<sanitized_query_parameters>'.

            :param path: The URL path to be sanitized.
            :return: The sanitized URL path.
            
lemur/__init__.py