def METHOD_NAME(self):
    if self.chdir:
        self.logger.info("Changing directory to {}".format(self.chdir))
    with cd(self.chdir):
        for element in self.elements:
            self._process_element(element)