def METHOD_NAME() -> Generator[str, None, None]:
    if hs.config.server.custom_template_directory:
        yield hs.config.server.custom_template_directory
    if hs.config.sso.sso_template_dir:
        yield hs.config.sso.sso_template_dir
    yield hs.config.sso.default_template_dir