def _claim_channel_id(self, channel_id):
        """Claim channel ID

        :param channel_id: channel ID
        :type channel_id: int
        """
        try:
            return self._avail_channel_ids.remove(channel_id)
        except __HOLE__:
            raise AMQPConnectionError('Channel {} already open'.format(channel_id))
dataset/ETHPy150Open veegee/amqpy/amqpy/connection.py/Connection._claim_channel_id