code: def iter_variants(self):
          
          for variant in self.repository.iter_variants(self.resource):
              yield Variant(variant, context=self.context, parent=self)
docs: Iterate over the variants within this package, in index order.
  
          Returns:
              `Variant` iterator.