code: def list_presets(self, package_keyname, **kwargs):
          
          get_kwargs = {}
          get_kwargs['mask'] = kwargs.get('mask', PRESET_MASK)
  
          if 'filter' in kwargs:
              get_kwargs['filter'] = kwargs['filter']
  
          package = self.get_package_by_key(package_keyname, mask='id')
          acc_presets = self.package_svc.getAccountRestrictedActivePresets(id=package['id'], **get_kwargs)
          active_presets = self.package_svc.getActivePresets(id=package['id'], **get_kwargs)
          return active_presets + acc_presets
docs: Gets active presets for the given package.
  
          :param str package_keyname: The package for which to get presets
          :returns: A list of package presets that can be used for ordering