def has_binary(d):
    if type(d)==bson.Binary:
        return True
    if type(d)==dict:
        for k,v in d.iteritems():
            if has_binary(v):
                return True
    return False
dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_library/src/rosbridge_library/protocol.py/has_binary/original