code: def _load_data(self, train_dirs):
      names = []
      curdir = os.path.abspath(os.path.curdir)
      for train_dir in train_dirs:
          abspath = os.path.abspath(train_dir)
          names.append(
              os.path.basename(abspath)
              if abspath != curdir
              else "current"
          )
  
      data = {}
      dirs = [
          {"name": name, "path": path}
          for name, path in zip(names, train_dirs)
      ]
  
      for dir_info in dirs:
          path = dir_info.get("path")
          content = self._update_data_from_dir(path)
  
          if not content:
              continue
  
          data[path] = {
              "path": path,
              "name": dir_info.get("name"),
              "content": content,
          }
      self.data = data
  
file_path: catboost/catboost/python-package/catboost/plot_helpers.py
imports: import json
  import os
  import warnings
  from .None import _catboost
label_desc: Use image node_id 3 for calling the OfflineMetricVisualizer obj's underlying member method code with example usage: obj._load_data(train_dirs) without return types