code: def gen_init_param(param: swagger_parser.Parameter) -> Code:
      if param.required:
          typestr = annotation(param.type)
          default = ""
      else:
          typestr = f'"typing.Union[{annotation(param.type, prequoted=True)}, None, Unset]"'
          default = " = _unset"
      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 5 for calling a global function with example usage: gen_init_param(param) and returns: str, param, str, typestr, default, str