code: def test_log_code_snapshot(tmp_path: pathlib.Path):
      files = [
          "recipe.yaml",
          "requirements.txt",
          "profiles/local.yaml",
          "steps/train.py",
          "runtime/recipe.yaml",
      ]
      for f in files:
          path = tmp_path.joinpath(f)
          path.parent.mkdir(exist_ok=True, parents=True)
          path.write_text("")
  
      mlflow.set_experiment(experiment_id="0")
      recipe_config = {"name": "fake_config", "dict": {"key": 123}}
      with mlflow.start_run() as run:
          log_code_snapshot(
              tmp_path, run.info.run_id, recipe_config=recipe_config
          )
          tracking_uri = mlflow.get_tracking_uri()
  
      artifacts = set(list_all_artifacts(tracking_uri, run.info.run_id))
      assert artifacts.issuperset(f"recipe_snapshot/{f}" for f in files)
  
file_path: mlflow/tests/recipes/test_tracking_utils.py
imports: import os
  import pathlib
  from unittest import mock
  import pytest
  import yaml
  import mlflow
  from mlflow.recipes.utils import get_recipe_config
  from mlflow.recipes.utils.tracking import get_recipe_tracking_config, log_code_snapshot
  from mlflow.utils.file_utils import path_to_local_file_uri, path_to_local_sqlite_uri
  from tests.recipes.helper_functions import list_all_artifacts
label_desc: Use image node_id 3 for calling a global function with example usage: test_log_code_snapshot(tmp_path) without return types