code: def get_esri_extent(esriobj):
      
  
      extent = None
      srs = None
  
      if 'fullExtent' in esriobj._json_struct:
          extent = esriobj._json_struct['fullExtent']
      if 'extent' in esriobj._json_struct:
          extent = esriobj._json_struct['extent']
  
      try:
          srs = extent['spatialReference']['wkid']
      except KeyError, err:
          LOGGER.error(err, exc_info=True)
  
      return [extent, srs]
docs: Get the extent of an ESRI resource