code: def setup_catalog_mappings(portal):
      
      logger.info("*** Setup Catalog Mappings ***")
  
      at = api.get_tool("archetype_tool")
      for portal_type, catalogs in CATALOG_MAPPINGS:
          at.setCatalogsByType(portal_type, catalogs)
docs: Setup portal_type -> catalog mappings