code: def add_op(op: parser.InstDef, uops: dict[str, Uop]) -> None:
      assert op.kind == "op"
      if op.name in uops:
          if "override" not in op.annotations:
              raise override_error(
                  op.name,
                  op.context,
                  uops[op.name].context,
                  op.tokens[0],
              )
      uops[op.name] = make_uop(op.name, op, op.inputs)
  
imports: from dataclasses import dataclass, field
  import lexer
  import parser
  from typing import Optional
label_desc: Use image node_id 14 for calling a global function with example usage: add_op(op, uops) without return types