in src/azstoragetorch/io.py [0:0]
def _raise_if_duplicate_block_ids(self, block_ids: List[str]) -> None:
# An additional safety measure to ensure we never reuse block IDs within a BlobIO instance. This
# should not be an issue with UUID4 for block IDs, but that may not always be the case if
# block ID generation changes in the future.
if len(block_ids) != len(set(block_ids)):
raise RuntimeError(
"Unexpected duplicate block IDs detected. Not committing blob."
)