code: def get_recipe_root_path() -> str:
      """
      Obtains the path of the recipe corresponding to the current working directory, throwing an
      ``MlflowException`` if the current working directory does not reside within a recipe
      directory.
  
      :return: The absolute path of the recipe root directory on the local filesystem.
      """
      # In the release version of MLflow Recipes, each recipe will be its own git repository.
      # To improve developer velocity for now, we choose to treat a recipe as a directory, which
      # may be a subdirectory of a git repo. The logic for resolving the repository root for
      # development purposes finds the first `recipe.yaml` file by traversing up the directory
      # tree, while the release version will find the recipe repository root (commented out below)
      curr_dir_path = pathlib.Path.cwd()
  
      while True:
          recipe_yaml_path_to_check = (
              curr_dir_path / _RECIPE_CONFIG_FILE_NAME
          )
          if recipe_yaml_path_to_check.exists():
              return str(curr_dir_path.resolve())
          elif curr_dir_path != curr_dir_path.parent:
              curr_dir_path = curr_dir_path.parent
          else:
              # If curr_dir_path == curr_dir_path.parent,
              # we have reached the root directory without finding
              # the desired recipe.yaml file
              raise MlflowException(
                  f"Failed to find {_RECIPE_CONFIG_FILE_NAME}!"
              )
  
file_path: mlflow/mlflow/recipes/utils/__init__.py
imports: import logging
  import os
  import pathlib
  import posixpath
  from typing import Any, Dict, Optional
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.utils.databricks_utils import is_in_databricks_runtime
  from mlflow.utils.file_utils import read_yaml, render_and_merge_yaml
label_desc: Use image node_id 3 for calling a global function with example usage: get_recipe_root_path() and returns: str