class_docstr: Provide a SRTM download mechanism.
class_docstr_tok: ["Provide","a","SRTM","download","mechanism","."]
code: def acquire_resource(self, target_path, format_dict):
      from zipfile import ZipFile
  
      target_dir = Path(target_path).parent
      target_dir.mkdir(parents=True, exist_ok=True)
  
      url = self.url(format_dict)
  
      srtm_online = self._urlopen(url)
      zfh = ZipFile(io.BytesIO(srtm_online.read()), "r")
  
      zip_member_path = "{y}{x}.hgt".format(**format_dict)
      member = zfh.getinfo(zip_member_path)
      with open(target_path, "wb") as fh:
          fh.write(zfh.open(member).read())
  
      srtm_online.close()
      zfh.close()
  
      return target_path
  
imports: import io
  from pathlib import Path
  import warnings
  import numpy
  from cartopy import config
  import cartopy.crs
  from cartopy.io import Downloader, LocatedImage, RasterSource, fh_getter
label_desc: Use image node_id 3 for calling the SRTMDownloader obj's underlying member method code with example usage: obj.acquire_resource(target_path, format_dict) and returns: target_path