def search(o, m: None):
    """ match given selector (dict with keys/values to match). """
    if not m:
        m = {}
    res = False
    for k, v in m.items():
        vv = o.get(k, None)
        if vv:
            if v == None:
                res = True
            elif v in str(vv):
                res = True
            else:
                res = False
                break
        else:
            res = False
            break
    return res
