code: def test_cpu_resource_returns_standard_command_runner(test_case):
      mock_resource = MagicMock()
  
      def __init__(self, provider_config: dict, cluster_name: str):
          self.lock = RLock()
          self.cached_nodes: Dict[str, GCPNode] = {}
          self.resources: Dict[GCPNodeType, GCPResource] = {}
          self.resources[GCPNodeType.COMPUTE] = mock_resource
  
      with patch.object(GCPNodeProvider, "__init__", __init__):
          node_provider = GCPNodeProvider({}, "")
  
      optional_docker_config, expected_runner = test_case
  
      args = {
          "log_prefix": "test",
          "node_id": "test-instance-compute",
          "auth_config": auth_config,
          "cluster_name": "test",
          "process_runner": MockProcessRunner(),
          "use_internal_ip": True,
      }
      args.update(optional_docker_config)
      command_runner = node_provider.get_command_runner(**args)
      assert isinstance(command_runner, expected_runner)
  
imports: from typing import Dict
  from threading import RLock
  import pytest
  from unittest.mock import MagicMock, patch, call
  import logging
  from ray.autoscaler._private.gcp.node import GCPCompute, GCPNode, GCPNodeType, GCPResource
  from ray.tests.test_autoscaler import MockProcessRunner
  from ray.autoscaler._private.gcp.node_provider import GCPNodeProvider
  from ray.autoscaler._private.gcp.config import get_node_type, _get_num_tpu_chips, _is_single_host_tpu, _has_tpus_in_node_configs, tpu_accelerator_config_to_type
  from ray.autoscaler._private.gcp.tpu_command_runner import TPUCommandRunner, TPUVMSSHCommandRunner, TPUVMDockerCommandRunner
  from ray.autoscaler._private.command_runner import SSHCommandRunner, DockerCommandRunner
label_desc: Use image node_id 6 for calling a global function with example usage: test_cpu_resource_returns_standard_command_runner(test_case) without return types