code: def find_saas_replication_price(package, tier=None, iops=None):
      
      if tier is not None:
          target_value = ENDURANCE_TIERS.get(tier)
          target_item_keyname = 'REPLICATION_FOR_TIERBASED_PERFORMANCE'
          target_restriction_type = 'STORAGE_TIER_LEVEL'
      else:
          target_value = iops
          target_item_keyname = 'REPLICATION_FOR_IOPSBASED_PERFORMANCE'
          target_restriction_type = 'IOPS'
  
      for item in package['items']:
          if item['keyName'] != target_item_keyname:
              continue
  
          price_id = _find_price_id(
              item['prices'],
              'performance_storage_replication',
              target_restriction_type,
              target_value
          )
          if price_id:
              return price_id
  
      raise ValueError("Could not find price for replicant volume")
docs: Find the price in the given package for the desired replicant volume
  
      :param package: The product package of the endurance storage type
      :param tier: The tier of the primary storage volume
      :param iops: The IOPS of the primary storage volume
      :return: Returns the replication price, or an error if not found