<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def images(self, fields=None, token=None):
 """ Returns image info keys for kind containing token Args: - fields: <list> image info values wanted - token: <str> substring to match image kind EXAMPLES Get all available image info: Get all image kinds: Get only "query" (kind) image info Get only file, url fields from "wikidata" images """


        if 'image' not in self.data:
            return

        out = []
        for img in self.data['image']:
            if token and token not in img['kind']:
                continue
            info = {}
            for key in img:
                if fields and key not in fields:
                    continue
                info.update({key: img[key]})
            if info:
                out.append(info)

        return out