code: def _ret_minions(self, filter_):
          '''
          Filter minions by a generic filter.
          '''
          minions = {}
          for minion in filter_(self.raw):
              data = self.get_data(minion)
              if data:
                  minions[minion] = data.copy()
          return minionf _ret_minions(self, filter_):
          '''
          Filter minions by a generic filter.
          '''
          minions = {}
          for minion in filter_(self.raw):
              data = self.get_data(minion)
              if data:
                  minions[minion] = data.copy()
          return minions
docs: Filter minions by a generic filter.