code: def test_accelerator_base_setup(
      test_settings, live_mock_server, mocked_fetchable_git_repo
  ):
      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-container",
          "resource_args": {
              "local-container": {
                  "builder": {
                      "accelerator": {
                          "base_image": "nvidia/cuda:11.0-runtime",
                      }
                  }
              }
          },
      }
      test_project = create_project_from_spec(test_spec, api)
      test_project = fetch_and_validate_project(test_project, api)
      base_setup = get_base_setup(test_project, "3.7", "3")
      assert "FROM nvidia/cuda:11.0-runtime as base" in base_setup
      assert (
          "python3-pip" in base_setup
          and "python3-setuptools" in base_setup
      )
  
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 1 for calling a global function with example usage: test_accelerator_base_setup(test_settings, live_mock_server, mocked_fetchable_git_repo) without return types