def METHOD_NAME():
    module_args = proxmox_auth_argument_spec()
    vm_info_args = dict(
        node=dict(type="str", required=False),
        type=dict(
            type="str", choices=["lxc", "qemu", "all"], default="all", required=False
        ),
        vmid=dict(type="int", required=False),
        name=dict(type="str", required=False),
    )
    module_args.update(vm_info_args)
    module = AnsibleModule(
        argument_spec=module_args,
        required_together=[("api_token_id", "api_token_secret")],
        required_one_of=[("api_password", "api_token_id")],
        supports_check_mode=True,
    )
    proxmox = ProxmoxVmInfoAnsible(module)
    node = module.params["node"]
    type = module.params["type"]
    vmid = module.params["vmid"]
    name = module.params["name"]
    result = dict(changed=False)
    if node and proxmox.get_node(node) is None:
        module.fail_json(msg="Node %s doesn't exist in PVE cluster" % node)
    vms_cluster_resources = proxmox.get_vms_from_cluster_resources()
    vms = []
    if type == "lxc":
        vms = proxmox.get_lxc_vms(vms_cluster_resources, vmid, name, node)
    elif type == "qemu":
        vms = proxmox.get_qemu_vms(vms_cluster_resources, vmid, name, node)
    else:
        vms = proxmox.get_qemu_vms(
            vms_cluster_resources,
            vmid,
            name,
            node,
        ) + proxmox.get_lxc_vms(vms_cluster_resources, vmid, name, node)
    result["proxmox_vms"] = vms
    module.exit_json(**result)