class_docstr: Streaming Bytes IO buffer. Data are dropped when read.
class_docstr_tok: ["Streaming","Bytes","IO","buffer",".","Data","are","dropped","when","read","."]
code: def write(self, b: bytes):
      if b:
          self._buffer.append(b)
      return len(b)
  
imports: import io
  from typing import Iterator, List, Optional
  import torch
  from torch import Tensor
  from torio.io._streaming_media_decoder import _get_afilter_desc, StreamingMediaDecoder
  from torio.io._streaming_media_encoder import CodecConfig, StreamingMediaEncoder
label_desc: Use image node_id 2 for calling the _StreamingIOBuffer obj's underlying member method code with example usage: obj.write(b) and returns: len