code: def get_base_path(checkpoint_config: Dict[str, Any]) -> pathlib.Path:
      allocation_id = os.environ.get("DET_ALLOCATION_ID", "")
      rank = get_rank_if_horovod_process_else_return_zero()
  
      if checkpoint_config.get("base_path"):
          base_path = pathlib.Path(checkpoint_config["base_path"])
      else:
          base_path = pathlib.Path("/", "tmp")
  
      return base_path.joinpath(f"tensorboard-{allocation_id}-{rank}")
  
file_path: determined/harness/determined/tensorboard/build.py
imports: import os
  import pathlib
  import urllib
  from typing import Any, Dict, Optional, Union
  from determined.common.storage.shared import _full_storage_path
  from determined.tensorboard import azure, base, directory, gcs, s3, shared
label_desc: Use image node_id 4 for calling a global function with example usage: get_base_path(checkpoint_config) and returns: base_path