<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cache_data_model(self, raw):
 """ Cache the data model json. Take data returned by a requests.get call to Earthref. Parameters raw: requests.models.Response """

        output_json = json.loads(raw.content)
        output_file = self.find_cached_dm()
        json.dump(output_json, open(output_file, 'w+'))