code: def internal_gateway_internal_host(
      services_per_namespace: Dict[str, List[str]]
  ) -> dict:
      return {
          "@type": "type.googleapis.com/envoy.config.route.v3.VirtualHost",
          "name": "internal",
          "domains": ["internal.hail"],
          "routes": [
              {
                  "match": {
                      "path_separated_prefix": f"/{namespace}/{service}"
                  },
                  "route": route_to_cluster(f"{namespace}-{service}"),
                  "typed_per_filter_config": {
                      "envoy.filters.http.local_ratelimit": rate_limit_config(
                          service
                      ),
                  },
              }
              for namespace, services in services_per_namespace.items()
              for service in services
          ],
      }
  
file_path: hail/ci/ci/envoy.py
imports: import os
  import sys
  from typing import Dict, List
  import yaml
label_desc: Use image node_id 6 for calling a global function with example usage: internal_gateway_internal_host(services_per_namespace) and returns: dict