<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mv_routing(self, debug=False, animation=False):
 """ Performs routing on all MV grids. Parameters debug: bool, default to False If True, information is printed while routing animation: bool, default to False If True, images of route modification steps are exported during routing process. A new animation object is created. See Also -------- ding0.core.network.grids.MVGridDing0.routing : for details on MVGridDing0 objects routing ding0.tools.animation.AnimationDing0 : for details on animation function. """


        if animation:
            anim = AnimationDing0()
        else:
            anim = None

        for grid_district in self.mv_grid_districts():
            grid_district.mv_grid.routing(debug=debug, anim=anim)

        logger.info('=====> MV Routing (Routing, Connection of Satellites & '
                    'Stations) performed')