def create_entity(self, **kwargs):
        """
        kwargs expected:
            'who': kwargs.get('who')
            'why': kwargs.get('why')
            'uri': kwargs.get('uri')
            'ip_addresses': kwargs.get('ip_addresses', {})
            'label': kwargs.get('label')
            'agent_id': kwargs.get('agent_id')
            'metadata': kwargs.get('extra', {})
        """
        data = kwargs
        headers = kwargs.get('headers', {})
        if data in 'headers':
            del data['headers']
        return self._create("/entities", data=data, coerce=self.get_entity, headers=headers)
dataset/ETHPy150Open racker/rackspace-monitoring/rackspace_monitoring/drivers/rackspace.py/RackspaceMonitoringDriver.create_entity/swapped operands of `in`