(cls, session)
Check if there's another session running on a channel

        Returns
          - True if (1) the channel is unclaimed or (2) the channel is already claimed by this session
          - False if the channel is already claimed by a different session

        A value of True does not guarantee that this session could claim it:
        a subsequent call to claim_channel_for_session could still return False
        i.e. if another session claims it first.
Check if there's another session running on a channel
Check if there s another session running on a channel
def channel_is_available_for_session(cls, session):
        """
        Check if there's another session running on a channel

        Returns
          - True if (1) the channel is unclaimed or (2) the channel is already claimed by this session
          - False if the channel is already claimed by a different session

        A value of True does not guarantee that this session could claim it:
        a subsequent call to claim_channel_for_session could still return False
        i.e. if another session claims it first.
        """
        with cls._critical_section(session.get_channel()):
            return cls._channel_is_available_for_session(session)
def channel_is_available_for_session ( cls , session ) : with cls . _critical_section ( session . get_channel ( ) ) : return cls . _channel_is_available_for_session ( session )