def METHOD_NAME(test, params, env):
    vm = env.get_vm(params["main_vm"])
    vm.verify_alive()
    error_context.context("Verify USB device in monitor.", test.log.info)
    o = vm.monitor.info("usb")
    if isinstance(o, dict):
        o = o.get("return")
    info_usb_name = params.get("info_usb_name")
    if info_usb_name and (info_usb_name not in o):
        test.fail("Could not find '%s' device, monitor "
                  "returns: \n%s" % (params.get("product"), o))