code: def test_no_frame_warning(tmpdir):
      fig, ax = plt.subplots()
  
      def update(frame):
          return []
  
      anim = animation.FuncAnimation(
          fig, update, frames=[], repeat=False, cache_frame_data=False
      )
  
      with pytest.warns(UserWarning, match="exhausted"):
          anim._start()
  
imports: import os
  from pathlib import Path
  import platform
  import re
  import shutil
  import subprocess
  import sys
  import weakref
  import numpy
  import pytest
  import matplotlib
  from matplotlib import pyplot
  from matplotlib import animation
  from matplotlib.testing.decorators import check_figures_equal
label_desc: Use image node_id 17 for calling a global function with example usage: test_no_frame_warning(tmpdir) and returns: list