def __init__(self, snapshots):
        """Creates a new MaxMind IP translator.

        Args:
           snapshots (list): A list of 2-tuples where the first element is a
               datetime and the second element is a file handle to the snapshot
               at that date.
        """
        self.logger = logging.getLogger('telescope')
        if len(snapshots) > 1:
            raise NotImplementedError(
                'Multiple MaxMind snapshot processing not yet implemented.')
        snapshot_file = snapshots[0][1]
        self._network_map = self._parse_maxmind_snapshot(snapshot_file)
        self._cache = {}
dataset/ETHPy150Open m-lab/telescope/telescope/iptranslation.py/IPTranslationStrategyMaxMind.__init__/original