code: def gen_function_param(param: swagger_parser.Parameter):
      if param.required:
          typestr = annotation(param.type)
          default = ""
      else:
          typestr = f'"typing.Optional[{annotation(param.type, prequoted=True)}]"'
          default = " = None"
      return f"    {param.name}: {typestr}{default},"
  
imports: import os
  import typing
  import swagger_parser
  from typing_extensions import assert_never
label_desc: Use image node_id 6 for calling a global function with example usage: gen_function_param(param) and returns: str, param, str, typestr, default, str