code: def load_config(self, config_source, parameters_source):
          
          with open(config_source) as config_source:
              config_raw = config_source.read()
  
              parameters = {}
              """Parameteres from file"""
              if os.path.isfile(parameters_source):
                  params = self.load_parameters(parameters_source)
                  if params is not None:
                      parameters.update(params)
  
              """Overwrite parameteres with the environment variables"""
              env_params = {}
              env_params.update(os.environ)
              for k, v in env_params.items():
                  if is_string(v):
                      env_params[k] = "'" + v + "'"
  
              parameters.update(env_params)
  
              """Replace the parameters"""
              final_configuration = config_raw.format(**parameters)
              final_configuration = yaml.safe_load(final_configuration)
              return final_configuration if final_configuration is not None else {}
docs: For YML, the source it the file path