code: def create_nodepools(region: str, args: argparse.Namespace) -> None:
      create_gpu_nodepool(region, args)
      if args.multiple_node_pools or args.cpu_only:
          create_cpu_nodepool(region, args)
  
      cmd = [
          "kubectl",
          "apply",
          "-f",
          defaults.K8S_NVIDIA_DAEMON,
      ]
      subprocess.check_call(cmd, stdout=subprocess.DEVNULL)
  
imports: import argparse
  import json
  import subprocess
  import sys
  from pathlib import Path
  from typing import Any, Dict, Optional, Union, cast
  from termcolor import cprint
  import determined
  from determined.common import yaml
  from determined.common.declarative_argparse import Arg, ArgGroup, Cmd
  from determined.common.util import safe_load_yaml_with_exceptions
  from determined.deploy.gke.constants import defaults
label_desc: Use image node_id 10 for calling a global function with example usage: create_nodepools(region, args) without return types