code: def __init__(self, errors: List[type]):
      # List off errors to raise while retrying self.mock_method
      self.errors = errors
      # Incremented during each retry via self._construct_client
      self.error_index = -1
      # Mirrors the __init__ of GCPNodeProvider
      # Also called during each retry in _retry
      self._construct_clients()
  
file_path: ray/python/ray/tests/test_autoscaler_gcp.py
imports: from typing import List
  import pytest
  from ray.autoscaler._private.gcp.node_provider import _retry
label_desc: Use image node_id 1 to create a new MockGCPNodeProvider object  with example: obj = MockGCPNodeProvider(errors)