def get_http_connect(account_func, container_func, object_func):
    def http_connect(ipaddr, port, device, partition, method, path,
                     headers=None, query_string=None):
        a, c, o = split_path(path, 1, 3, True)
        if o:
            func = object_func
        elif c:
            func = container_func
        else:
            func = account_func
        resp = func(ipaddr, port, device, partition, method, path,
                    headers=headers, query_string=query_string)
        return resp

    return http_connect
Used to check OpenTSDB version.
dataset/ETHPy150Open openstack/swift/test/unit/proxy/test_sysmeta.py/get_http_connect--crossover with--dataset/ETHPy150Open openstack/python-opentsdbclient/opentsdbclient/base.py/BaseOpenTSDBClient.get_version