code: def routes(self) -> list[BaseRoute]:
      from starlette.routing import Route
  
      routes: list[BaseRoute] = []
      routes.append(
          Route(path="/livez", name="livez", endpoint=self.livez)
      )
      routes.append(
          Route(path="/healthz", name="healthz", endpoint=self.livez)
      )
      routes.append(
          Route(path="/readyz", name="readyz", endpoint=self.readyz)
      )
      return routes
  
file_path: BentoML/src/bentoml/_internal/server/base_app.py
imports: from __future__ import annotations
  import abc
  import contextlib
  import logging
  import typing
  from typing import TYPE_CHECKING
  from starlette.exceptions import HTTPException
  from starlette.middleware import Middleware
  from starlette.responses import PlainTextResponse
  from ..utils import is_async_callable
label_desc: Use image node_id 7 for calling the BaseAppFactory obj's underlying member method code with example usage: obj.routes() and returns: routes