def cpuset(self, name, cpus=None, mems=None):
        """
        Set/Get cpuset cgroup specification/limitation
        the call to this method will always GET the current set values for both cpus and mems
        If cpus, or mems is NOT NONE value it will be set as the spec for that attribute

        :param cpus: Set cpus affinity limit to the given value (0, 1, 0-10, etc...)
        :param mems: Set mems affinity limit to the given value (0, 1, 0-10, etc...)

        :return: current cpuset
        """

        args = {
            'name': name,
            'cpus': cpus,
            'mems': mems,
        }

        self._cpuset_spec.check(args)
        return self._client.json('cgroup.cpuset.spec', args)
Set/Get cpuset cgroup specification/limitation
        the call to this method will always GET the current set values for both cpus and mems
        If cpus, or mems is NOT NONE value it will be set as the spec for that attribute

        :param cpus: Set cpus affinity limit to the given value (0, 1, 0-10, etc...)
        :param mems: Set mems affinity limit to the given value (0, 1, 0-10, etc...)

        :return: current cpuset