def METHOD_NAME(recipe_root_path: str = None) -> str:
    """
    Obtains the name of the specified recipe or of the recipe corresponding to the current
    working directory.
    :param recipe_root_path: The absolute path of the recipe root directory on the local
                               filesystem. If unspecified, the recipe root directory is
                               resolved from the current working directory.
    :raises MlflowException: If the specified ``recipe_root_path`` is not a recipe root
                             directory or if ``recipe_root_path`` is ``None`` and the current
                             working directory does not correspond to a recipe.
    :return: The name of the specified recipe.
    """
    recipe_root_path = recipe_root_path or get_recipe_root_path()
    _verify_is_recipe_root_directory(recipe_root_path=recipe_root_path)
    return os.path.basename(recipe_root_path)