def get_func_id_match(func_id, d):
    """Find matching func_id, taking into account sync/async method pairs."""
    for func_id_try in [func_id, func_id.replace("async", ""), func_id + "async"]:
        if func_id_try in d:
            return func_id_try