code: def _get_default_config(provider_config):
      """Retrieve a node provider.
  
      This is an INTERNAL API. It is not allowed to call this from any Ray
      package outside the autoscaler.
      """
      if provider_config["type"] == "external":
          return copy.deepcopy(MINIMAL_EXTERNAL_CONFIG)
      load_config = _DEFAULT_CONFIGS.get(provider_config["type"])
      if load_config is None:
          raise NotImplementedError(
              "Unsupported node provider: {}".format(
                  provider_config["type"]
              )
          )
      path_to_default = load_config()
      with open(path_to_default) as f:
          defaults = yaml.safe_load(f)
  
      return defaults
  
imports: import copy
  import json
  import logging
  import os
  from typing import Any, Dict
  import yaml
  from ray.autoscaler._private.loader import load_function_or_class
label_desc: Use image node_id 25 for calling a global function with example usage: _get_default_config(provider_config) and returns: defaults, copy