code: def find_saas_snapshot_space_price(package, size, tier=None, iops=None):
      
      if tier is not None:
          target_value = ENDURANCE_TIERS.get(tier)
          target_restriction_type = 'STORAGE_TIER_LEVEL'
      else:
          target_value = iops
          target_restriction_type = 'IOPS'
  
      for item in package['items']:
          if int(item['capacity']) != size:
              continue
  
          price_id = _find_price_id(item['prices'], 'storage_snapshot_space', target_restriction_type, target_value)
          if price_id:
              return price_id
  
      raise ValueError("Could not find price for snapshot space")
docs: Find the price in the SaaS package for the desired snapshot space size
  
      :param package: The product package of the endurance storage type
      :param size: The snapshot space size for which a price is desired
      :param tier: The tier of the volume for which space is being ordered
      :param iops: The IOPS of the volume for which space is being ordered
      :return: Returns the price for the given size, or an error if not found