code: def cache_data_model(self, raw):
          
          output_json = json.loads(raw.content)
          output_file = self.find_cached_dm()
          json.dump(output_json, open(output_file, 'w+'))
docs: Cache the data model json.
          Take data returned by a requests.get call to Earthref.
  
          Parameters
          ----------
          raw: requests.models.Response