def METHOD_NAME(virsh_dargs):
    """
    Execute 'virsh domcapabilities' within the guest
    :param virsh_dargs: dict, parameters used
    :return: CmdResult object, the execution result of the command
    """
    remote_session = None
    try:
        remote_session = virsh.VirshPersistent(**virsh_dargs)
        cmd_result = remote_session.domcapabilities(ignore_status=False)
    finally:
        if remote_session:
            remote_session.close_session()
    return cmd_result