code: def register_writer(name, writer_cls):
      if name in writer_map:
          raise Exception(f"Writer {name} already registered")
  
      writer_map[name] = writer_cls
  
label_desc: Use image node_id 1 for calling a global function with example usage: register_writer(name, writer_cls) without return types