code: def matches(self, requirement):
      
      try:
        requirement = self.parse_requirement(requirement, self._interpreter)
      except ValueError as e:
        raise self.UnknownRequirement(str(e))
      return self.distribution in requirement
docs: Given a Requirement, check if this interpreter matches.