code: def test_feature_artist_draw(path_collection_cls, feature):
      geoms = list(feature.geometries())
  
      fa = FeatureArtist(feature, facecolor="red")
      prj_crs = ccrs.Robinson()
      fa.axes = mocked_axes(
          extent=[-10, 10, -10, 10], projection=prj_crs
      )
      fa.draw(mock.sentinel.renderer)
  
      transform = prj_crs._as_mpl_transform(fa.axes)
      expected_paths = (
          cached_paths(geoms[0], prj_crs)
          + cached_paths(geoms[1], prj_crs),
      )
      expected_style = {"facecolor": "red"}
  
      args, kwargs = path_collection_cls.call_args_list[0]
      assert transform == kwargs.pop("transform", None)
      assert kwargs == expected_style
      assert args == expected_paths
  
      path_collection_cls().set_clip_path.assert_called_once_with(
          fa.axes.patch
      )
      path_collection_cls().set_figure.assert_called_once_with(
          fa.axes.figure
      )
      path_collection_cls().draw(mock.sentinel.renderer)
  
file_path: cartopy/lib/cartopy/tests/mpl/test_feature_artist.py
imports: from unittest import mock
  from matplotlib.transforms import IdentityTransform
  import numpy
  import pytest
  import shapely.geometry
  import cartopy.crs
  from cartopy.feature import ShapelyFeature
  from cartopy.mpl import style
  from cartopy.mpl.feature_artist import FeatureArtist, _freeze, _GeomKey
  import cartopy.mpl.geoaxes
label_desc: Use image node_id 6 for calling a global function with example usage: test_feature_artist_draw(path_collection_cls, feature) without return types