code: def test_arrow():
      p = (
          ggplot(data, aes("x", "y"))
          + geom_path(size=2, arrow=arrow(ends="both", type="closed"))
          + geom_path(
              aes(y="y+2"),
              color="red",
              size=2,
              arrow=arrow(angle=60, length=0.8, ends="first"),
          )
          + geom_path(
              aes(y="y+4"),
              color="blue",
              size=2,
              arrow=arrow(length=0.8),
          )
      )
  
      assert p == "arrow"
  
file_path: plotnine/tests/test_geom_path_line_step.py
imports: import numpy
  import pandas
  import pytest
  from plotnine import aes, arrow, facet_grid, geom_line, geom_path, geom_point, geom_step, ggplot
  from plotnine.exceptions import PlotnineWarning
label_desc: Use image node_id 2 for calling a global function with example usage: test_arrow() without return types