code: def test_radius_legend_GraduatedCircleViz(data):
      """Raises a LegendError if legend is set to 'radius' legend_function and
      legend_gradient is True.
      """
      with pytest.raises(LegendError):
          viz = GraduatedCircleViz(
              data,
              color_property="Avg Medicare Payments",
              radius_property="Avg Covered Charges",
              legend_function="radius",
              legend_gradient=True,
              access_token=TOKEN,
          )
          viz.create_html()
  
imports: import os
  import json
  import base64
  import random
  from mock import patch
  import pytest
  from mapboxgl.viz import *
  from mapboxgl.errors import TokenError, LegendError
  from mapboxgl.utils import create_color_stops, create_numeric_stops
  from matplotlib.pyplot import imread
label_desc: Use image node_id 14 for calling a global function with example usage: test_radius_legend_GraduatedCircleViz(data) without return types