class_docstr: HDD results.
docstr: Get paths for files, encapsulates the storage logic of the class.
docstr_tok: ["Get","paths","for","files",",","encapsulates","the","storage","logic","of","the","class","."]
code: def _generate_key(
      self, strategy_name, dataset_name, cv_fold, train_or_test
  ):
      """Get paths for files, encapsulates the storage logic of the class."""
      filepath = os.path.join(self.path, strategy_name, dataset_name)
      if not os.path.exists(filepath):
          # recursively create directory including intermediate-level folders
          os.makedirs(filepath)
      filename = f"{strategy_name}_{train_or_test}_{cv_fold}"
      return os.path.join(filepath, filename)
  
imports: import os
  import numpy
  import pandas
  from joblib import load
  from sktime.benchmarking.base import BaseResults, HDDBaseResults, _PredictionsWrapper
label_desc: Use image node_id 7 for calling the HDDResults obj's underlying member method code with example usage: obj._generate_key(strategy_name, dataset_name, cv_fold, train_or_test) and returns: os