def METHOD_NAME(host, user, private_key):
    """Open a SSH connection with a SOCKS proxy."""
    set_up = SocksProxyUp(host, user, private_key)
    tear_down = KillProcess('socks_proxy', PID_FILE)
    with environment_run(up=set_up, down=tear_down) as result:
        yield result