code: def gen_def(anno: swagger_parser.TypeDef) -> Code:
      if isinstance(anno, swagger_parser.Class):
          return gen_class(anno)
      if isinstance(anno, swagger_parser.Enum):
          return gen_enum(anno)
      assert_never(anno)
  
imports: import os
  import typing
  import swagger_parser
  from typing_extensions import assert_never
label_desc: Use image node_id 15 for calling a global function with example usage: gen_def(anno) and returns: gen_class, gen_enum