<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def register_ignore(self, origins, destination):
        '''
        Add routes to the ignore dictionary

        :param origins: a number of origins to register
        :type origins: :py:class:`str` or iterable of :py:class:`str`
        :param destination: where the origins should point to
        :type destination: :py:class:`str`

        Ignore dictionary takes the following form::

            {'node_a': set(['node_b', 'node_c']),
             'node_b': set(['node_d'])}

        '''
        if not isinstance(origins, list):
            origins = [origins]

        self.ignore_regexes.setdefault(destination, [re.compile(origin) for origin in origins])
        self.regenerate_routes()

        return self.ignore_regexes[destination]