class_docstr: ``CheckpointContext`` gives access to checkpoint-related features of a Determined cluster.
class_docstr_tok: ["``","CheckpointContext","``","gives","access","to","checkpoint-related","features","of","a","Determined","cluster","."]
code: def _raise_conflict_error(
      self, conflicts: Dict[str, List], conflict_dtype: str
  ) -> None:
      # Try to keep the logs easier to read; print the whole failure only on the chief.
      if self._dist.rank > 0:
          raise RuntimeError(
              f"refusing to upload with {conflict_dtype} conflicts: {conflicts}"
          )
      msgs = [
          f"    {f} uploaded by ranks {ranks}"
          for f, ranks in sorted(conflicts.items())
      ]
  
      raise RuntimeError(
          f"refusing to upload with {conflict_dtype} conflicts:\n"
          + "\n".join(msgs)
      )
  
imports: import contextlib
  import datetime
  import enum
  import hashlib
  import json
  import logging
  import os
  import pathlib
  import uuid
  from typing import Any, Callable, Dict, Iterator, List, Optional, Set, Tuple, Union
  from determined import core, tensorboard
  from determined.common import api, storage
  from determined.common.api import bindings
label_desc: Use image node_id 6 for calling the CheckpointContext obj's underlying member method code with example usage: obj._raise_conflict_error(conflicts, conflict_dtype) without return types