docstr: Remove paths contained in file_blacklist, and format others to prepare for saving results
docstr_tok: ["Remove","paths","contained","in","file_blacklist",",","and","format","others","to","prepare","for","saving","results"]
code: def format_result_paths(self):
      """Remove paths contained in file_blacklist, and format others to prepare for saving results"""
      if self.file_blacklist == "ALL" or self.results_path is None:
          return
  
      # Blacklist the prediction files for any datasets that were not given
      if self.holdout_dataset is None:
          self.file_blacklist.append("predictions_holdout")
      if self.test_dataset is None:
          self.file_blacklist.append("predictions_test")
  
      # Add given `experiment_recorders` to `result_paths`
      for recorder in self.experiment_recorders:
          try:
              recorder, result_path = recorder
          except IndexError:
              raise IndexError(
                  f"Expected `recorder` to be tuple of (class, str), not {recorder}"
              )
  
          self.result_paths[recorder.result_path_key] = result_path
  
      # Set full filepath for result files relative to `results_path`, or to None (blacklist)
      for k in self.result_paths.keys():
          if k == "root":
              continue
          elif k not in self.file_blacklist:
              # If `k` not in `RESULT_FILE_SUB_DIR_PATHS`, then added via `experiment_recorders`
              self.result_paths[k] = os.path.join(
                  self.results_path,
                  RESULT_FILE_SUB_DIR_PATHS.get(
                      k, self.result_paths[k]
                  ),
              )
          else:
              self.result_paths[k] = None
  
imports: from hyperparameter_hunter.callbacks.bases import BaseCallback
  from hyperparameter_hunter.i_o.reporting import ReportingHandler
  from hyperparameter_hunter.keys.makers import CrossExperimentKeyMaker
  from hyperparameter_hunter.metrics import format_metrics
  from hyperparameter_hunter.sentinels import DatasetSentinel
  from hyperparameter_hunter.settings import G, ASSETS_DIRNAME, RESULT_FILE_SUB_DIR_PATHS
  from hyperparameter_hunter.utils.boltons_utils import remap
  from hyperparameter_hunter.utils.file_utils import make_dirs, ParametersFromFile
  from hyperparameter_hunter.utils.general_utils import Alias
  from hyperparameter_hunter.utils.result_utils import format_predictions, default_do_full_save
  from inspect import signature, isclass
  import numpy
  import os.path
  import pandas
  from pandas.api.types import is_numeric_dtype
  from typing import List, Optional, Tuple, Union
  from sklearn.model_selection import _split
label_desc: Use image node_id 27 for calling the Environment obj's underlying member method code with example usage: obj.format_result_paths() without return types