def _stripe_object_to_tax_rates(
        cls, target_cls, data, api_key=djstripe_settings.STRIPE_SECRET_KEY
    ):
        """
        Retrieves TaxRates for a SubscriptionItem or InvoiceItem
        :param target_cls:
        :param data:
        :return:
        """
        tax_rates = []

        for tax_rate_data in data.get("tax_rates", []):
            tax_rate, _ = target_cls._get_or_create_from_stripe_object(
                tax_rate_data, refetch=False, api_key=api_key
            )
            tax_rates.append(tax_rate)

        return tax_rates

        Retrieves TaxRates for a SubscriptionItem or InvoiceItem
        :param target_cls:
        :param data:
        :return:
        
djstripe/models/base.py