code: def test_animation_different_scale_limits():
      def plot(i):
          _lims = lims(color=((3, 7) if i == 2 else (1, 7)))
          return (
              qplot(x, y, color=colors[i], xlab="x", ylab="y")
              + _lims
              + labs(color="color")
              + 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 2 for calling a global function with example usage: test_animation_different_scale_limits() and returns: unknown