code: def test_in_range(self, Source):
      if Source == cartopy.io.srtm.SRTM3Source:
          shape = (1201, 1201)
      elif Source == cartopy.io.srtm.SRTM1Source:
          shape = (3601, 3601)
      else:
          raise ValueError("Source is of unexpected type.")
      source = Source()
      img, crs, extent = source.single_tile(-1, 50)
      assert isinstance(img, np.ndarray)
      assert img.shape == shape
      assert img.dtype == np.dtype(">i2")
      assert crs == ccrs.PlateCarree()
      assert extent == (-1, 0, 50, 51)
  
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 2 for calling the TestSRTMSource__single_tile obj's underlying member method code with example usage: obj.test_in_range(Source) without return types