code: def source_filter(method_name, *args, **kwargs):
      
  
      def source_filter(value, context, **_params):
          method = getattr(context["model"].source, method_name)
          return _filter(method, value, args, kwargs)
  
      return source_filter
docs: Creates an effect that will call the source's method with the current
      value and specified arguments and keywords.
      @param method_name: the name of method belonging to the source reference.
      @type method_name: str