code: def switchupdown(x=0, y=0):
      if pen()["pendown"]:
          end_fill()
          up()
      else:
          down()
          begin_fill()
  
label_desc: Use image node_id 1 for calling a global function with example usage: switchupdown(x, y) without return types