def METHOD_NAME(self, shape: Tuple) -> None:
    """
    Create stream in file with given fourcc and fps, works in-place.
    Args:
        fourcc: Stream codec.
        fps: Frames per second of the stream.
    """
    self._stream = self._file.add_stream(self._fourcc)
    self._stream.time_base = Fraction(1, 1000 * 1000)  # Microseconds
    # We need to set pixel format for MJEPG, for H264/H265 it's yuv420p by default
    if self._fourcc == 'mjpeg':
        self._stream.pix_fmt = 'yuvj420p'
    self._stream.width = shape[0]
    self._stream.height = shape[1]