code: def test_animation_different_scales():
      def plot(i):
          c = colors[i]
          if i == 2:
              p = (
                  qplot(x, y, color=c, xlab="x", ylab="y")
                  + lims(color=(1, 7))
                  + labs(color="color")
              )
          else:
              p = (
                  qplot(x, y, stroke=c, xlab="x", ylab="y")
                  + lims(stroke=(1, 7))
                  + labs(stroke="stroke")
              )
          return p + theme_minimal()
  
      plots = [plot(i) for i in range(3)]
      with pytest.raises(PlotnineError):
          _PlotnineAnimation(plots, interval=100, repeat_delay=500)
  
file_path: plotnine/tests/test_animation.py
imports: import matplotlib.pyplot
  import pytest
  from plotnine import labs, lims, qplot, theme_minimal
  from plotnine.animation import PlotnineAnimation
  from plotnine.exceptions import PlotnineError
label_desc: Use image node_id 4 for calling a global function with example usage: test_animation_different_scales() and returns: unknown