code: def apply_clusterconfig(nodegroup, config):
      clusterconfig_settings = {
          "instanceType": config["instance_type"],
          "volumeSize": config["instance_volume_size"],
          "minSize": config["min_instances"],
          "maxSize": config["max_instances"],
          "volumeType": config["instance_volume_type"],
          "desiredCapacity": 1
          if config["min_instances"] == 0
          else config["min_instances"],
      }
      # add iops to settings if volume_type is io1/gp3
      if config["instance_volume_type"] in ["io1", "gp3"]:
          clusterconfig_settings["volumeIOPS"] = config[
              "instance_volume_iops"
          ]
      if config["instance_volume_type"] == "gp3":
          clusterconfig_settings["volumeThroughput"] = config[
              "instance_volume_throughput"
          ]
  
      return merge_override(nodegroup, clusterconfig_settings)
  
imports: import json
  import click
  from collections import namedtuple
  import re
  import yaml
label_desc: Use image node_id 5 for calling a global function with example usage: apply_clusterconfig(nodegroup, config) and returns: merge_override