code: def test_is_terminated():
      """Should return true if a cached node is not in POWERED_ON state"""
      vnp = mock_vsphere_node_provider()
      vnp.get_vsphere_sdk_provider = MagicMock()
      vnp.get_pyvmomi_sdk_provider().is_vm_power_on.return_value = False
      vnp.get_vsphere_sdk_provider().is_vm_creating.return_value = False
      is_terminated = vnp.is_terminated("node1")
      assert is_terminated is True
  
imports: import copy
  import time
  import pytest
  import threading
  from unittest.mock import MagicMock, patch
  from ray.autoscaler._private.vsphere.node_provider import VsphereNodeProvider
  from ray.autoscaler._private.vsphere.config import update_vsphere_configs, validate_frozen_vm_configs
  from ray.autoscaler._private.vsphere.gpu_utils import split_vm_2_gpu_cards_map, GPUCard, set_gpu_placeholder
  from ray.autoscaler._private.vsphere.utils import singleton_client
label_desc: Use image node_id 2 for calling a global function with example usage: test_is_terminated() without return types