def METHOD_NAME(uses, uses_with, expected):
    flow = (
        Flow().config_gateway(uses=uses, uses_with=uses_with).add(uses=ProcessExecutor)
    )
    with flow:
        _validate_dummy_custom_gateway_response(flow.port, expected)
        _validate_custom_gateway_process(
            flow.port, 'hello', {'text': 'helloworld', 'tags': {'processed': True}}
        )