code: def configure_visual_baseline(self):
          
          # Get baseline name
          baseline_name = self.config.get_optional('VisualTests', 'baseline_name', '{Driver_type}')
          for section in self.config.sections():
              for option in self.config.options(section):
                  option_value = self.config.get(section, option)
                  baseline_name = baseline_name.replace('{{{0}_{1}}}'.format(section, option), option_value)
  
          # Configure baseline directory if baseline name has changed
          if self.baseline_name != baseline_name:
              self.baseline_name = baseline_name
              self.visual_baseline_directory = os.path.join(DriverWrappersPool.visual_baseline_directory,
                                                            get_valid_filename(baseline_name))
docs: Configure baseline directory