code: def unwrap_streaming_response(anno: swagger_parser.TypeAnno):
      if not isinstance(
          anno, swagger_parser.Ref
      ) or not is_streaming_response(anno.defn):
          return anno
      assert isinstance(anno.defn, swagger_parser.Class)
      return anno.defn.params["result"].type
  
imports: import os
  import typing
  import swagger_parser
  from typing_extensions import assert_never
label_desc: Use image node_id 8 for calling a global function with example usage: unwrap_streaming_response(anno) and returns: anno, anno