code: def test_arrow():
      p = (
          ggplot(data, aes("x", "y", xend="xend", yend="yend"))
          + geom_segment(
              aes("x+2", xend="xend+2"), arrow=arrow(), size=2
          )
          + geom_segment(
              aes("x+4", xend="xend+4"),
              arrow=arrow(ends="first"),
              size=2,
          )
          + geom_segment(
              aes("x+6", xend="xend+6"),
              arrow=arrow(ends="both"),
              size=2,
          )
      )
  
      assert p == "arrow"
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_arrow() without return types