code: def get_nat_metadata(pricing):
      for _, product in pricing["products"].items():
          if product.get("attributes") is None:
              continue
          if product.get("productFamily") != "NAT Gateway":
              continue
          if product["attributes"].get("group") != "NGW:NatGateway":
              continue
          if product["attributes"].get("operation") != "NatGateway":
              continue
          if (
              not product["attributes"]
              .get("usagetype", "")
              .endswith("-Hours")
          ):
              continue
  
          price_dimensions = list(
              pricing["terms"]["OnDemand"][product["sku"]].values()
          )[0]["priceDimensions"]
          price = list(price_dimensions.values())[0]["pricePerUnit"][
              "USD"
          ]
          return {"price": float(price)}
  
file_path: cortex/pkg/lib/aws/gen_resource_metadata.py
imports: import requests
  import re
  from string import Template
label_desc: Use image node_id 4 for calling a global function with example usage: get_nat_metadata(pricing) and returns: dict