docstr: Return key from :attr:`environment.Environment.result_paths`, corresponding to the
  target record
docstr_tok: ["Return","key","from",":","attr",":","`","environment.Environment.result_paths","`",",","corresponding","to","the","target","record"]
code: def result_path_key(self) -> str:
      """Return key from :attr:`environment.Environment.result_paths`, corresponding to the
      target record"""
  
imports: from hyperparameter_hunter.data import OOFDataset, HoldoutDataset, TestDataset
  from hyperparameter_hunter.i_o.exceptions import EnvironmentInactiveError, EnvironmentInvalidError
  from hyperparameter_hunter.i_o.leaderboards import GlobalLeaderboard
  from hyperparameter_hunter.settings import G
  from hyperparameter_hunter.utils.file_utils import write_json, add_to_json, make_dirs, read_json
  from hyperparameter_hunter.utils.file_utils import RetryMakeDirs
  from hyperparameter_hunter.utils.general_utils import subdict
  from abc import ABCMeta, abstractmethod
  from collections import OrderedDict
  from platform import node
  import shutil
  from sys import exc_info
label_desc: Use image node_id 2 for calling the BaseRecorder obj's underlying member method code with example usage: obj.result_path_key() without return types