code: def test_dockerfile_conda(
      test_settings,
      live_mock_server,
      mocked_fetchable_git_repo_conda,
      monkeypatch,
  ):
      monkeypatch.setattr(
          "wandb.docker.is_buildx_installed", lambda: True
      )
  
      api = wandb.sdk.internal.internal_api.Api(
          default_settings=test_settings, load_settings=False
      )
      test_spec = {
          "uri": "https://wandb.ai/mock_server_entity/test/runs/1",
          "entity": "mock_server_entity",
          "project": "test",
          "resource": "local",
      }
      test_project = create_project_from_spec(test_spec, api)
      test_project = fetch_and_validate_project(test_project, api)
  
      assert test_project.deps_type == "conda"
  
      dockerfile = generate_dockerfile(
          test_project,
          EntryPoint("main.py", ["python", "train.py"]),
          "local",
          "docker",
      )
      assert "conda env create -f environment.yml" in dockerfile
      assert "FROM continuumio/miniconda3:latest as build" in dockerfile
      assert (
          "RUN --mount=type=cache,mode=0777,target=/opt/conda/pkgs"
          in dockerfile
      )
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_launch/test_launch_docker.py
imports: from unittest.mock import MagicMock, mock_open, patch
  import wandb
  from wandb.docker import DockerError
  from wandb.sdk.launch._project_spec import EntryPoint, create_project_from_spec, fetch_and_validate_project
  from wandb.sdk.launch.builder.build import generate_dockerfile, get_base_setup
  from wandb.sdk.launch.utils import docker_image_exists
  from .test_launch import mocked_fetchable_git_repo, mocked_fetchable_git_repo_conda, mocked_fetchable_git_repo_nodeps
label_desc: Use image node_id 3 for calling a global function with example usage: test_dockerfile_conda(test_settings, live_mock_server, mocked_fetchable_git_repo_conda, monkeypatch) without return types