code: def select(self, versions):
          
          options = list(self.filter(versions))
          if options:
              return max(options)
          return None
docs: Select the best compatible version among an iterable of options.