code: def is_streaming_response(
      defn: typing.Optional[swagger_parser.TypeDef],
  ):
      if isinstance(defn, swagger_parser.Class) and set(
          defn.params.keys()
      ) == set(["result", "error"]):
          error_ref = defn.params["error"]
          return (
              isinstance(error_ref.type, swagger_parser.Ref)
              and error_ref.type.name == "runtimeStreamError"
          )
      return False
  
imports: import os
  import typing
  import swagger_parser
  from typing_extensions import assert_never
label_desc: Use image node_id 7 for calling a global function with example usage: is_streaming_response(defn) and returns: False, unknown