code: def test_ordnance_survey_get_image():
      # In order to test fetching map images from OS
      # an API key needs to be provided
      try:
          api_key = os.environ["ORDNANCE_SURVEY_API_KEY"]
      except KeyError:
          pytest.skip(
              "ORDNANCE_SURVEY_API_KEY environment variable is unset."
          )
  
      os1 = cimgt.OrdnanceSurvey(api_key, layer="Outdoor_3857")
      os2 = cimgt.OrdnanceSurvey(api_key, layer="Light_3857")
  
      tile = (500, 300, 10)
  
      img1, extent1, _ = os1.get_image(tile)
      img2, extent2, _ = os2.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 12 for calling a global function with example usage: test_ordnance_survey_get_image() without return types