code: def node_provider_tags(config, type_name):
      """
      Returns a copy of DEFAULT_NODE_PROVIDER_INSTANCE_TAGS with the Ray node
      kind and Ray user node type filled in from the input config and node type
      name.
  
      Args:
          config: autoscaler config
          type_name: node type name
      Returns:
          tags: node provider tags
      """
      tags = copy.copy(DEFAULT_NODE_PROVIDER_INSTANCE_TAGS)
      head_name = config["head_node_type"]
      node_kind = (
          NODE_KIND_HEAD if type_name is head_name else NODE_KIND_WORKER
      )
      tags[TAG_RAY_NODE_KIND] = node_kind
      tags[TAG_RAY_USER_NODE_TYPE] = type_name
      return tags
  
imports: import os
  import yaml
  import ray
  import copy
  from typing import Dict, Any
  from ray.autoscaler._private.aws.node_provider import AWSNodeProvider
  from ray.autoscaler.tags import TAG_RAY_NODE_KIND, NODE_KIND_HEAD, NODE_KIND_WORKER, TAG_RAY_USER_NODE_TYPE, TAG_RAY_CLUSTER_NAME
  from ray.autoscaler._private.commands import prepare_config, validate_config
  from ray.tests.aws.utils.constants import DEFAULT_CLUSTER_NAME, DEFAULT_NODE_PROVIDER_INSTANCE_TAGS
  from ray.autoscaler._private.aws.cloudwatch.cloudwatch_helper import CloudwatchHelper
label_desc: Use image node_id 6 for calling a global function with example usage: node_provider_tags(config, type_name) and returns: tags