code: def find_price_by_category(package, price_category):
      
      for item in package['items']:
          price_id = _find_price_id(item['prices'], price_category)
          if price_id:
              return price_id
  
      raise ValueError("Could not find price with the category, %s" % price_category)
docs: Find the price in the given package that has the specified category
  
      :param package: The AsAService, Enterprise, or Performance product package
      :param price_category: The price category code to search for
      :return: Returns the price for the given category, or an error if not found