code: def test_span_cmap_list(agg, attr, how, cmap):
      # Get input
      x = getattr(agg, attr).copy()
  
      # Get expected solution for interpolation method
      sol = solutions[how]
  
      # Check span
      check_span(x, cmap, how, sol)
  
imports: from __future__ import annotations
  from io import BytesIO
  import numpy
  import xarray
  import dask.array
  import PIL
  import pytest
  import datashader.transfer_functions
  from datashader.tests.test_pandas import assert_eq_ndarray, assert_eq_xr, assert_image_close
label_desc: Use image node_id 6 for calling a global function with example usage: test_span_cmap_list(agg, attr, how, cmap) without return types