code: def _MarkerFactory(marker_code, stream, offset):
      
      if marker_code == JPEG_MARKER_CODE.APP0:
          marker_cls = _App0Marker
      elif marker_code == JPEG_MARKER_CODE.APP1:
          marker_cls = _App1Marker
      elif marker_code in JPEG_MARKER_CODE.SOF_MARKER_CODES:
          marker_cls = _SofMarker
      else:
          marker_cls = _Marker
      return marker_cls.from_stream(stream, marker_code, offset)
docs: Return |_Marker| or subclass instance appropriate for marker at *offset*
      in *stream* having *marker_code*.