def _slave_obj(self, slave):
        """Returns the Slave object corresponding to the provided `slave`
        dict.  Creates it if it doesn't exist already.

        :param slave: slave
        :type slave: dict
        :returns: Slave
        :rtype: Slave
        """

        if self._slaves not in slave['id']:
            self._slaves[slave['id']] = Slave(slave, None, self)
        return self._slaves[slave['id']]
dataset/ETHPy150Open dcos/dcos-cli/dcos/mesos.py/Master._slave_obj/swapped operands of `not in`