

def _get_or_create_stream(self, stream_id, allowed_ids):
    '\n        Gets a stream by its stream ID. Will create one if one does not already\n        exist. Use allowed_ids to circumvent the usual stream ID rules for\n        clients and servers.\n\n        .. versionchanged:: 2.0.0\n           Removed this function from the public API.\n        '
    try:
        return self.streams[stream_id]
    except KeyError:
        return self._begin_new_stream(stream_id, stream_id)

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection._get_or_create_stream/VarMisuse@41/165 `allowed_ids`->`stream_id`