code: def get_all_worker_nodegroups(
      ami_map: dict, cluster_config: dict
  ) -> list:
      """
      Gets all node groups in EKS-dict format.
      """
      worker_nodegroups = []
      for ng in cluster_config["node_groups"]:
          worker_nodegroups.append(
              get_worker_nodegroup(ami_map, ng, cluster_config)
          )
      return worker_nodegroups
  
imports: import json
  import click
  from collections import namedtuple
  import re
  import yaml
label_desc: Use image node_id 13 for calling a global function with example usage: get_all_worker_nodegroups(ami_map, cluster_config) and returns: worker_nodegroups