code: def test_recipes_run_sets_mlflow_git_tags():
      recipe = Recipe(profile="local")
      recipe.clean()
      recipe.run(step="train")
  
      profile_path = pathlib.Path.cwd() / "profiles" / "local.yaml"
      with open(profile_path) as f:
          profile_contents = yaml.safe_load(f)
  
      tracking_uri = profile_contents["experiment"]["tracking_uri"]
      experiment_name = profile_contents["experiment"]["name"]
  
      mlflow.set_tracking_uri(tracking_uri)
      logged_runs = mlflow.search_runs(
          experiment_names=[experiment_name],
          output_format="list",
          order_by=["attributes.start_time DESC"],
      )
      logged_run = logged_runs[0]
  
      run_tags = (
          MlflowClient(tracking_uri)
          .get_run(run_id=logged_run.info.run_id)
          .data.tags
      )
      assert {
          MLFLOW_SOURCE_NAME,
          MLFLOW_GIT_COMMIT,
          MLFLOW_GIT_REPO_URL,
          LEGACY_MLFLOW_GIT_REPO_URL,
      } < run_tags.keys()
      assert (
          run_tags[MLFLOW_SOURCE_NAME] == run_tags[MLFLOW_GIT_REPO_URL]
      )
  
imports: import os
  import pathlib
  import re
  import shutil
  from unittest import mock
  import pandas
  import pytest
  import yaml
  import mlflow
  from mlflow.entities import Run, SourceType
  from mlflow.entities.model_registry import ModelVersion
  from mlflow.exceptions import MlflowException
  from mlflow.recipes.recipe import Recipe
  from mlflow.recipes.step import BaseStep
  from mlflow.recipes.utils.execution import _MAKEFILE_FORMAT_STRING, _get_execution_directory_basename, get_step_output_path
  from mlflow.tracking.client import MlflowClient
  from mlflow.tracking.context.registry import resolve_tags
  from mlflow.utils.file_utils import path_to_local_file_uri
  from mlflow.utils.mlflow_tags import LEGACY_MLFLOW_GIT_REPO_URL, MLFLOW_GIT_COMMIT, MLFLOW_GIT_REPO_URL, MLFLOW_SOURCE_NAME, MLFLOW_SOURCE_TYPE
  from tests.recipes.helper_functions import chdir, list_all_artifacts
label_desc: Use image node_id 7 for calling a global function with example usage: test_recipes_run_sets_mlflow_git_tags() without return types