def is_usbtmc(dev):
    if (custom_match and (not custom_match(dev))):
        return False
    return bool(find_interfaces(dev, bInterfaceClass=254, bInterfaceSubClass=3))
def is_usbtmc(dev):
    if (custom_match and (not custom_match(dev))):
        return False
    return bool(find_interfaces(dev, bInterfaceClass=254, bInterfaceSubClass=3))