code: def test_create_node_failure(self):
      self.base_provider.error_creates = NodeLaunchException(
          "hello", "failed to create node", src_exc_info=None
      )
      self.assertEqual(
          self.node_provider.create_nodes("worker_nodes1", 1), []
      )
      self.assertEqual(len(self.base_provider.mock_nodes), 0)
      self.assertTrue(
          "worker_nodes1"
          in self.availability_tracker.summary().node_availabilities
      )
      self.assertEqual(
          self.node_provider.get_non_terminated_nodes(),
          {},
      )
  
file_path: ray/python/ray/autoscaler/v2/tests/test_node_provider.py
imports: import os
  import sys
  import unittest
  import pytest
  from ray._private.test_utils import load_test_config
  from ray.autoscaler._private.event_summarizer import EventSummarizer
  from ray.autoscaler._private.node_launcher import BaseNodeLauncher
  from ray.autoscaler._private.node_provider_availability_tracker import NodeProviderAvailabilityTracker
  from ray.autoscaler.node_launch_exception import NodeLaunchException
  from ray.autoscaler.v2.instance_manager.config import AutoscalingConfig
  from ray.autoscaler.v2.instance_manager.node_provider import NodeProviderAdapter
  from ray.autoscaler.v2.tests.util import FakeCounter
  from ray.core.generated.instance_manager_pb2 import Instance
  from ray.tests.autoscaler_test_utils import MockProvider
label_desc: Use image node_id 3 for calling the NodeProviderTest obj's underlying member method code with example usage: obj.test_create_node_failure() without return types