def METHOD_NAME(test, cap_type):
    """
    Find device by capability
    :param test: test object
    :param cap_type: capability type
    """
    result = virsh.nodedev_list(cap=cap_type, debug=True)
    if result.exit_status:
        test.fail(result.stderr)
    device_names = result.stdout.strip().splitlines()
    return device_names