code: def apply_gpu_settings(nodegroup):
      gpu_settings = {
          "tags": {
              "k8s.io/cluster-autoscaler/node-template/label/nvidia.com/gpu": "true",
              "k8s.io/cluster-autoscaler/node-template/taint/dedicated": "nvidia.com/gpu=true",
              "k8s.io/cluster-autoscaler/node-template/label/k8s.amazonaws.com/accelerator": "true",  # accepted values are GPU type such as nvidia-tesla-k80 but using "true" as a placeholder for now because the value doesn't matter for AWS cluster autoscaler
          },
          "labels": {
              "nvidia.com/gpu": "true",
              "k8s.amazonaws.com/accelerator": "true",  # accepted values are GPU type such as nvidia-tesla-k80 but using "true" as a placeholder for now because the value doesn't matter for AWS cluster autoscaler
          },
          "taints": [
              {
                  "key": "nvidia.com/gpu",
                  "value": "true",
                  "effect": "NoSchedule",
              },
          ],
      }
  
      return merge_override(nodegroup, gpu_settings)
  
imports: import json
  import click
  from collections import namedtuple
  import re
  import yaml
label_desc: Use image node_id 7 for calling a global function with example usage: apply_gpu_settings(nodegroup) and returns: merge_override