code: def test_tpu_pod_emits_warning(
      propagate_logs, caplog, accelerator_pod_tuple
  ):
      accelerator, should_emit = accelerator_pod_tuple
  
      with caplog.at_level(
          logging.WARNING,
          logger="ray.autoscaler._private.gcp.config.get_node_type",
      ):
          get_node_type(accelerator)
          if should_emit:
              assert "TPU pod detected" in caplog.text
          else:
              assert "TPU pod detected" not in caplog.text
  
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 14 for calling a global function with example usage: test_tpu_pod_emits_warning(propagate_logs, caplog, accelerator_pod_tuple) without return types