code: def _has_annotation(annotation, value):
      
  
      def matches_property_name(fun):
          """ return true if fun is a callable that has the correct annotation with value """
          return callable(fun) and hasattr(fun, annotation) \
                 and getattr(fun, annotation) is value
      return matches_property_name
docs: Returns a function that can be used as a predicate in get_members, that