code: def test_azuremaps_get_image():
      # In order to test fetching map images from Azure Maps
      # an API key needs to be provided
      try:
          api_key = os.environ["AZURE_MAPS_SUBSCRIPTION_KEY"]
      except KeyError:
          pytest.skip(
              "AZURE_MAPS_SUBSCRIPTION_KEY environment variable "
              "is unset."
          )
  
      am1 = cimgt.AzureMapsTiles(
          api_key, tileset_id="microsoft.imagery"
      )
      am2 = cimgt.AzureMapsTiles(
          api_key, tileset_id="microsoft.base.road"
      )
  
      tile = (500, 300, 10)
  
      img1, extent1, _ = am1.get_image(tile)
      img2, extent2, _ = am2.get_image(tile)
  
      # Different images for different layers
      assert img1 != img2
  
      # The extent is the same though
      assert extent1 == extent2
  
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 14 for calling a global function with example usage: test_azuremaps_get_image() without return types