code: def convert_stack_item(item: parser.StackEffect) -> StackItem:
      return StackItem(
          item.name,
          item.type,
          item.cond,
          (item.size or "1"),
          type_prop=item.type_prop,
      )
  
imports: from dataclasses import dataclass, field
  import lexer
  import parser
  from typing import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: convert_stack_item(item) and returns: StackItem