code: def test_run_local_conda_env():
      with open(os.path.join(TEST_PROJECT_DIR, "conda.yaml")) as handle:
          conda_env_contents = handle.read()
      expected_env_name = (
          "mlflow-%s"
          % insecure_hash.sha1(
              conda_env_contents.encode("utf-8")
          ).hexdigest()
      )
      try:
          process._exec_cmd(
              cmd=[
                  "conda",
                  "env",
                  "remove",
                  "--name",
                  expected_env_name,
              ]
          )
      except process.ShellCommandException:
          _logger.error(
              "Unable to remove conda environment %s. The environment may not have been present, "
              "continuing with running the test.",
              expected_env_name,
          )
      invoke_cli_runner(
          cli.run,
          [
              TEST_PROJECT_DIR,
              "-e",
              "check_conda_env",
              "-P",
              f"conda_env_name={expected_env_name}",
          ],
      )
  
imports: import json
  import logging
  import os
  import shutil
  from unittest import mock
  import pytest
  from click.testing import CliRunner
  from mlflow import MlflowClient, cli
  from mlflow.utils import insecure_hash, process
  from tests.integration.utils import invoke_cli_runner
  from tests.projects.utils import GIT_PROJECT_URI, SSH_PROJECT_URI, TEST_DOCKER_PROJECT_DIR, TEST_PROJECT_DIR, docker_example_base_image
label_desc: Use image node_id 5 for calling a global function with example usage: test_run_local_conda_env() without return types