def METHOD_NAME(func):
    """
    Setting the running place for each test.
    """
    def wrapper(self, *args, **kwargs):
        places = self.places
        for place in places:
            paddle.set_device(place)
            func(self, *args, **kwargs)
    return wrapper