def get_installed(method_filter=None):
    if method_filter is None:
        method_filter = ["max-product", 'ad3', 'qpbo', 'ogm', 'lp']

    installed = []
    unary = np.zeros((1, 1))
    pw = np.zeros((1, 1))
    edges = np.empty((0, 2), dtype=np.int)
    for method in method_filter:
        try:
            inference_dispatch(unary, pw, edges, inference_method=method)
            installed.append(method)
        except __HOLE__:
            pass
    return installed
dataset/ETHPy150Open pystruct/pystruct/pystruct/inference/inference_methods.py/get_installed