code: def default_streaming_callback(chunk: StreamingChunk) -> None:
      """
      Default callback function for streaming responses.
      Prints the tokens of the first completion to stdout as soon as they are received
      """
      print(chunk.content, flush=True, end="")
  
imports: import inspect
  import sys
  from typing import Optional, Callable
  from haystack import DeserializationError
  from haystack.dataclasses import StreamingChunk
label_desc: Use image node_id 1 for calling a global function with example usage: default_streaming_callback(chunk) without return types