def METHOD_NAME(conf):
    # type: (AutopushConfig) -> Agent
    """Create a twisted.web.client Agent from the given config"""
    # Use a persistent connection pool for HTTP requests.
    pool = HTTPConnectionPool(reactor)
    if not conf.debug:
        pool._factory = QuietClientFactory
    return Agent(reactor, connectTimeout=conf.connect_timeout, pool=pool)