code: def serialize_callback_handler(
      streaming_callback: Callable[[StreamingChunk], None]
  ) -> str:
      """
      Serializes the streaming callback handler.
      :param streaming_callback: The streaming callback handler function
      :return: The full path of the streaming callback handler function
      """
      module = inspect.getmodule(streaming_callback)
  
      # Get the full package path of the function
      if module is not None:
          full_path = f"{module.__name__}.{streaming_callback.__name__}"
      else:
          full_path = streaming_callback.__name__
      return full_path
  
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 2 for calling a global function with example usage: serialize_callback_handler(streaming_callback) and returns: full_path