code: def generate_resource_limits(
      compute_api: discovery.Resource, project_id: str, region: str
  ) -> Optional[List[Dict[str, Any]]]:
      """generates resource limits from quota information
  
      Args:
      compute_api: compute_api instance
      project_id: project id
      region: region string
  
      Returns:
      resource limits dictionaries on success, None otherwise
      """
  
      quotas = get_region_quotas(compute_api, project_id, region)
      if quotas is None:
          return None
  
      return resource_limits_from_quotas(quotas)
  
imports: from __future__ import absolute_import
  import argparse
  import json
  import logging
  import os
  import pprint
  import re
  from time import sleep
  from typing import Any, Dict, List, Optional
  from urllib.parse import urlencode, urlparse
  import google
  import yaml
  from google.auth._cloud_sdk import get_application_default_credentials_path
  from google.auth._default import _AUTHORIZED_USER_TYPE, _SERVICE_ACCOUNT_TYPE, load_credentials_from_file
  from google.cloud.container_v1 import ClusterManagerClient
  from google.cloud.container_v1.types import Cluster
  from google.oauth2 import service_account
  from googleapiclient import discovery
  from kubernetes.client import V1Job
  from kubernetes.client.api_client import ApiClient
  from yaspin import yaspin
  from yaspin.spinners import Spinners
  import caliban.platform.gke.constants
  from caliban.platform.cloud.types import GPU, TPU, GPUSpec, TPUSpec
  from caliban.platform.gke.types import CredentialsData, NodeImage, OpStatus
label_desc: Use image node_id 14 for calling a global function with example usage: generate_resource_limits(compute_api, project_id, region) and returns: resource_limits_from_quotas, None