def METHOD_NAME():
    """
    Test if it returns the info of udev-created node in a dict
    """
    cmd_out = {
        "retcode": 0,
        "stdout": (
            "P: /devices/virtual/vc/vcsa7\n"
            "N: vcsa7\n"
            "E: DEVNAME=/dev/vcsa7\n"
            "E: DEVPATH=/devices/virtual/vc/vcsa7\n"
            "E: MAJOR=7\n"
            "E: MINOR=135\n"
            "E: SUBSYSTEM=vc\n"
            "\n"
        ),
        "stderr": "",
    }
    ret = {
        "E": {
            "DEVNAME": "/dev/vcsa7",
            "DEVPATH": "/devices/virtual/vc/vcsa7",
            "MAJOR": 7,
            "MINOR": 135,
            "SUBSYSTEM": "vc",
        },
        "N": "vcsa7",
        "P": "/devices/virtual/vc/vcsa7",
    }
    mock = MagicMock(return_value=cmd_out)
    with patch.dict(udev.__salt__, {"cmd.run_all": mock}):
        data = udev.info("/dev/vcsa7")
        assert ret["P"] == data["P"]
        assert ret.get("N") == data.get("N")
        for key, value in data["E"].items():
            assert ret["E"][key] == value