<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_array_includes(self, array, json):
 """Iterate through all `includes` and create a resource for every item. In addition map the resources under the `items_mapped` by the resource id and type. :param array: Array resource. :param json: Raw JSON dictionary. """

        includes = json.get('includes') or {}
        for key in array.items_mapped.keys():
            if key in includes:
                for resource in includes[key]:
                    processed = self.from_json(resource)
                    array.items_mapped[key][processed.sys['id']] = processed