class_docstr: Base class from which `.generate()` streamers should inherit.
class_docstr_tok: ["Base","class","from","which","`",".generate","(",")","`","streamers","should","inherit","."]
docstr: Function that is called by `.generate()` to push new tokens
docstr_tok: ["Function","that","is","called","by","`",".generate","(",")","`","to","push","new","tokens"]
code: def put(self, value):
      """Function that is called by `.generate()` to push new tokens"""
      raise NotImplementedError()
  
file_path: transformers/src/transformers/generation/streamers.py
imports: from queue import Queue
  from typing import TYPE_CHECKING, Optional
label_desc: Use image node_id 1 for calling the BaseStreamer obj's underlying member method code with example usage: obj.put(value) without return types