code: def test_compute_node_list_instances_excludes_tpu():
      mock_execute = MagicMock(return_value={"test": "abc"})
      mock_list = MagicMock(
          return_value=MagicMock(execute=mock_execute)
      )
      mock_instances = MagicMock(return_value=MagicMock(list=mock_list))
      mock_resource = MagicMock(instances=mock_instances)
  
      GCPCompute(
          mock_resource, _PROJECT_NAME, _AZ, "cluster_name"
      ).list_instances()
      filter_arg = mock_list.call_args.kwargs["filter"]
  
      # Checks that the tpu negation filter is included.
      assert "tpu_cores" in filter_arg
  
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 5 for calling a global function with example usage: test_compute_node_list_instances_excludes_tpu() without return types