code: def parse(server, data, initpath):  # pragma: no cover seems to be dead code.
          
          STREAMCLS = {1: VideoStream, 2: AudioStream, 3: SubtitleStream}
          stype = cast(int, data.attrib.get('streamType'))
          cls = STREAMCLS.get(stype, MediaPartStream)
          return cls(server, data, initpath)
docs: Factory method returns a new MediaPartStream from xml data.