code: def test_controls():
      x = np.linspace(0, 1, 5)
      y = np.sin(np.pi * x)
      t = np.linspace(0, 1, 5)
  
      timeline = amp.Timeline(t, units="s", fps=5)
      block = amp.blocks.ParametricLine(x, y)
      block.ax.set_xlim([0, 1])
      block.ax.set_ylim([0, 1])
  
      anim = amp.Animation([block], timeline)
      anim.controls()
      return anim
  
file_path: animatplot/tests/test_animation.py
imports: from matplotlib.testing import setup
  import os
  import pytest
  import numpy
  import matplotlib.pyplot
  from matplotlib.animation import PillowWriter
  import animatplot
  from tests.tools import animation_compare
label_desc: Use image node_id 1 for calling a global function with example usage: test_controls() and returns: anim