code: def fulfill(contract_func):
      """Decorate ``contract_func`` to reject calls which violate preconditions,
      and retry them with different arguments.
  
      This is a convenience function for testing internal code that uses
      :pypi:`dpcontracts`, to automatically filter out arguments that would be
      rejected by the public interface before triggering a contract error.
  
      This can be used as ``builds(fulfill(func), ...)`` or in the body of the
      test e.g. ``assert fulfill(func)(*args)``.
      """
      if not hasattr(contract_func, "__contract_wrapped_func__"):
          raise InvalidArgument(
              f"{contract_func.__name__} has no dpcontracts preconditions"
          )
  
      @proxies(contract_func)
      def inner(*args, **kwargs):
          try:
              return contract_func(*args, **kwargs)
          except PreconditionError:
              reject()
  
      return inner
  
imports: from dpcontracts import PreconditionError
  from hypothesis import reject
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.reflection import proxies
label_desc: Use image node_id 1 for calling a global function with example usage: fulfill(contract_func) and returns: inner, contract_func