code: def test_srtm_retrieve(
      self, Source, read_SRTM, max_, min_, pt, download_to_temp
  ):  # noqa: F811
      # test that the download mechanism for SRTM works
      with pytest.warns(cartopy.io.DownloadWarning):
          r = Source().srtm_fname(-4, 50)
  
      assert r.startswith(
          str(download_to_temp)
      ), "File not downloaded to tmp dir"
  
      img, _, _ = read_SRTM(r)
  
      # check that the data is fairly sensible
      assert img.max() == max_
      assert img.min() == min_
      assert img[-10, 12] == pt
  
file_path: cartopy/lib/cartopy/tests/io/test_srtm.py
imports: import numpy
  from numpy.testing import assert_array_equal
  import pytest
  import cartopy.crs
  import cartopy.io.srtm
  from .test_downloaders import download_to_temp
label_desc: Use image node_id 1 for calling the TestRetrieve obj's underlying member method code with example usage: obj.test_srtm_retrieve(Source, read_SRTM, max_, min_, pt, download_to_temp) without return types