def METHOD_NAME(test, uuid, adapter, domain):
    """
    Check if the device was created successfully
    :param test: test object
    :param uuid: id for mediated device
    :param adapter: adapter of crypto device in host
    :param domain: domain of crypto device in host
    """
    devices_cmd = ("cat /sys/devices/vfio_ap/matrix/%s/matrix" % uuid)
    status, output = utils_misc.cmd_status_output(
        devices_cmd, verbose=True)
    mdev_created_successfully = output == "%s.%s" % (adapter, domain)
    if not mdev_created_successfully:
        raise test.fail("mdev device was not create successfully through "
                        "nodev-API")