def METHOD_NAME(pyramid_settings, pyramid_request):
    """Return Pyramid configurator object."""
    with testing.testConfig(
        request=pyramid_request, settings=pyramid_settings
    ) as config:
        # Include pyramid_services so it's easy to set up fake services in tests
        config.include("pyramid_services")
        config.include("h.security.request_methods")
        apply_request_extensions(pyramid_request)
        yield config