code: def gen_function_docstring(
      func: swagger_parser.Function,
  ) -> typing.List[str]:
      """generate docstring for generated functions with summarized parameter support"""
      out = []
      required = sorted(
          (k, v) for k, v in func.params.items() if v.required
      )
      optional = sorted(
          (k, v) for k, v in func.params.items() if not v.required
      )
      params_in_order = [
          param
          for _, param in required + optional
          if param.title is not None and param.title.strip()
      ]
  
      if not params_in_order and not func.summary:
          return out
      out += ['"""']
      summary_lines = breakup_comment(func.summary)
      if summary_lines:
          out[-1] += summary_lines[0]
          out += summary_lines[1:]
      if params_in_order:
          out += [""]
          for param in params_in_order:
              out += [f"- {param.name}: {param.title}"]
  
      if len(out) == 1:
          out[-1] += '"""'
      else:
          out += ['"""']
      return out
  
imports: import os
  import typing
  import swagger_parser
  from typing_extensions import assert_never
label_desc: Use image node_id 10 for calling a global function with example usage: gen_function_docstring(func) and returns: out, out