docstr: Check correct import when coordinator_address is in config yaml.
docstr_tok: ["Check","correct","import","when","coordinator_address","is","in","config","yaml","."]
code: def testImportingCorrectClass(self):
      """Check correct import when coordinator_address is in config yaml."""
  
      provider_config = {"coordinator_address": "fake_address:1234"}
      coordinator_node_provider = _NODE_PROVIDERS.get("local")(
          provider_config
      )
      assert coordinator_node_provider is CoordinatorSenderNodeProvider
      local_node_provider = _NODE_PROVIDERS.get("local")({})
      assert local_node_provider is LocalNodeProvider
  
imports: import os
  import random
  import unittest
  import socket
  import json
  from ray.autoscaler.local.coordinator_server import OnPremCoordinatorServer
  from ray.autoscaler._private.providers import _NODE_PROVIDERS, _get_node_provider
  from ray.autoscaler._private.local import config
  from ray.autoscaler._private.local.node_provider import LocalNodeProvider
  from ray.autoscaler._private.local.node_provider import record_local_head_state_if_needed
  from ray.autoscaler._private.local.coordinator_node_provider import CoordinatorSenderNodeProvider
  from ray.autoscaler.tags import TAG_RAY_NODE_KIND, TAG_RAY_CLUSTER_NAME, TAG_RAY_NODE_NAME, NODE_KIND_WORKER, NODE_KIND_HEAD, TAG_RAY_USER_NODE_TYPE, TAG_RAY_NODE_STATUS, STATUS_UP_TO_DATE
  from ray._private.utils import get_ray_temp_dir
  import pytest
label_desc: Use image node_id 3 for calling the OnPremCoordinatorServerTest obj's underlying member method code with example usage: obj.testImportingCorrectClass() without return types