async def cluster_setslot(self, node_id, slot_id, state):
        """
        Bind an hash slot to a specific node

        Sends to specified node
        """
        if state.upper() in {'IMPORTING', 'MIGRATING', 'NODE'} and node_id is not None:
            return await self.execute_command('CLUSTER SETSLOT', slot_id, state, node_id)
        elif state.upper() == 'STABLE':
            return await self.execute_command('CLUSTER SETSLOT', slot_id, 'STABLE')
        else:
            raise RedisError('Invalid slot state: {0}'.format(state))
async def cluster_setslot ( self , node_id , slot_id , state ) : if state . upper ( ) in { 'IMPORTING' , 'MIGRATING' , 'NODE' } and node_id is not None : return await self . execute_command ( 'CLUSTER SETSLOT' , slot_id , state , node_id ) elif state . upper ( ) == 'STABLE' : return await self . execute_command ( 'CLUSTER SETSLOT' , slot_id , 'STABLE' ) else : raise RedisError ( 'Invalid slot state: {0}' . format ( state ) )
Bind an hash slot to a specific node

        Sends to specified node