code: def test_google_wts():
      gt = cimgt.GoogleTiles()
  
      ll_target_domain = sgeom.box(-15, 50, 0, 60)
      multi_poly = gt.crs.project_geometry(
          ll_target_domain, ccrs.PlateCarree()
      )
      target_domain = multi_poly.geoms[0]
  
      with pytest.raises(AssertionError):
          list(gt.find_images(target_domain, -1))
      assert tuple(gt.find_images(target_domain, 0)) == ((0, 0, 0),)
      assert tuple(gt.find_images(target_domain, 2)) == (
          (1, 1, 2),
          (2, 1, 2),
      )
  
      assert list(gt.subtiles((0, 0, 0))) == [
          (0, 0, 1),
          (0, 1, 1),
          (1, 0, 1),
          (1, 1, 1),
      ]
      assert list(gt.subtiles((1, 0, 1))) == [
          (2, 0, 2),
          (2, 1, 2),
          (3, 0, 2),
          (3, 1, 2),
      ]
  
      with pytest.raises(AssertionError):
          gt.tileextent((0, 1, 0))
  
      assert_arr_almost(
          gt.tileextent((0, 0, 0)), KNOWN_EXTENTS[(0, 0, 0)]
      )
      assert_arr_almost(
          gt.tileextent((2, 0, 2)), KNOWN_EXTENTS[(2, 0, 2)]
      )
      assert_arr_almost(
          gt.tileextent((0, 2, 2)), KNOWN_EXTENTS[(0, 2, 2)]
      )
      assert_arr_almost(
          gt.tileextent((2, 2, 2)), KNOWN_EXTENTS[(2, 2, 2)]
      )
      assert_arr_almost(
          gt.tileextent((8, 9, 4)), KNOWN_EXTENTS[(8, 9, 4)]
      )
  
imports: import hashlib
  import os
  import types
  import warnings
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
  import shapely.geometry
  from cartopy import config
  import cartopy.crs
  import cartopy.io.img_tiles
label_desc: Use image node_id 3 for calling a global function with example usage: test_google_wts() without return types