code: def load_parameters(self, path_to_yaml_dir):
          
  
          parameters = ParameterNode('', directory_path = path_to_yaml_dir)
  
          if self.preprocess_parameters is not None:
              parameters = self.preprocess_parameters(parameters)
  
          self.parameters = parameters
docs: Loads the legislation parameter for a directory containing YAML parameters files.
  
          :param path_to_yaml_dir: Absolute path towards the YAML parameter directory.
  
          Example:
  
          >>> self.load_parameters('/path/to/yaml/parameters/dir')