code: def apply_inf_settings(nodegroup, config):
      instance_type = config["instance_type"]
  
      num_chips, num_hugepages = get_inf_resources(instance_type)
      inf_settings = {
          "tags": {
              "k8s.io/cluster-autoscaler/node-template/label/aws.amazon.com/neuron": "true",
              "k8s.io/cluster-autoscaler/node-template/taint/dedicated": "aws.amazon.com/neuron=true",
              "k8s.io/cluster-autoscaler/node-template/resources/aws.amazon.com/neuron": str(
                  num_chips
              ),
              "k8s.io/cluster-autoscaler/node-template/resources/hugepages-2Mi": num_hugepages,
          },
          "labels": {"aws.amazon.com/neuron": "true"},
          "taints": [
              {
                  "key": "aws.amazon.com/neuron",
                  "value": "true",
                  "effect": "NoSchedule",
              },
          ],
      }
      return merge_override(nodegroup, inf_settings)
  
imports: import json
  import click
  from collections import namedtuple
  import re
  import yaml
label_desc: Use image node_id 9 for calling a global function with example usage: apply_inf_settings(nodegroup, config) and returns: merge_override