def METHOD_NAME(image_id_change_map: IdChangeMap,
                           recipe_id_change_map: IdChangeMap) -> None:
    """
    Update the Cray Product Catalog configmap, replacing any old IMS image or recipe IDs with the
    corresponding new ones.
    This function is intended to be used by other modules that import this one, as well as being
    used within this module.
    """
    if not image_id_change_map and not recipe_id_change_map:
        # No ID changes, so nothing to do
        return
    cpc = product_catalog.ProductCatalog()
    for product_name, product_version_map in cpc.get_installed_products().items():
        for product_version, product_version_details in product_version_map.items():
            image_name_ids = get_name_id_replacements(product_name, product_version,
                                                      product_version_details, "images",
                                                      image_id_change_map)
            recipe_name_ids = get_name_id_replacements(product_name, product_version,
                                                       product_version_details, "recipes",
                                                       recipe_id_change_map)
            # If no IDs changed, we're done with this product version
            if not image_name_ids and not recipe_name_ids:
                continue
            # Update the product catalog accordingly.
            cpc.update_product_images_recipes(product_name=product_name,
                                              product_version=product_version,
                                              image_name_ids=image_name_ids,
                                              recipe_name_ids=recipe_name_ids)