def get_most_recent_images(self, results, types=[], sensors=[], N=<NUM_LIT:1>):
if not len(results):<EOL><INDENT>return None<EOL><DEDENT>if types:<EOL><INDENT>results = [r for r in results if r['<STR_LIT:type>'] in types]<EOL><DEDENT>if sensors:<EOL><INDENT>results = [r for r in results if r['<STR_LIT>'].get('<STR_LIT>') in sensors]<EOL><DEDENT>newlist = sorted(results, key=lambda k: k['<STR_LIT>'].get('<STR_LIT>'), reverse=True)<EOL>return newlist[:N]<EOL>
Return the most recent image

        Args:
            results: a catalog resultset, as returned from a search
            types: array of types you want. optional.
            sensors: array of sensornames. optional.
            N: number of recent images to return.  defaults to 1.

        Returns:
            single catalog item, or none if not found