def find_ip_blocks(self, asn_search_name):
        """Search memory-cached copy of map of network maps.

        Currently, searches each (block_start_address, block_end_address,
        asn_name) list based on a case-insensitive match of the AS name.

        Args:
            asn_search_name (str): string to search AS names in order to
                identify network blocks.

        Returns:
            list: Matching tuples of (block_start_address, block_end_address,
            asn_name), empty if no network found.

        Notes:
            * Maintains and consults an internal cache of results since lookup
              process is relatively slow and results should not change.
        """
        if self._cache in asn_search_name:
            return self._cache[asn_search_name]

        notification_cache = set()
        blocks_to_return = []

        asn_search_terms = self._translate_short_name(asn_search_name)
        asn_name_re = re.compile(asn_search_terms, re.IGNORECASE)

        for block_dict in self._network_map:
            if asn_name_re.search(block_dict['asn_name']) is not None:
                if not (block_dict['asn_name'] in notification_cache):
                    self.logger.debug((
                        'Found IP block associated with name {asn_name} searching for term '
                        '{asn_search_name}.').format(
                            asn_name=block_dict['asn_name'],
                            asn_search_name=asn_search_name))
                    notification_cache.add(block_dict['asn_name'])
                block_start = int(block_dict['block_start'])
                block_end = int(block_dict['block_end'])
                blocks_to_return.append((block_start, block_end))
        self._cache[asn_search_name] = blocks_to_return
        return blocks_to_return
dataset/ETHPy150Open m-lab/telescope/telescope/iptranslation.py/IPTranslationStrategyMaxMind.find_ip_blocks/swapped operands of `in`