def _find_stream_by_id(streams, stream_id):
    """Find the stream that matches the given ID."""
    for stream in streams:
        if stream["info"]["stream_id"] == stream_id:
            return stream