code: def test_copy_all_conflict_raise(tmp_path):
      """Test that on_conflict=raise raises a
      ValueError if the attribute already exists in the destination."""
  
      src = h5py.File(tmp_path / "src", "w")
      src["x"] = 1
  
      dst = h5py.File(tmp_path / "dst", "w")
      dst["x"] = 2
  
      with pytest.raises(
          ValueError, match="Key 'x' already exists in '/x'"
      ):
          hdf5.copy_all(src, dst, on_conflict="raise")
  
file_path: pennylane/tests/data/base/test_hdf5.py
imports: from unittest.mock import MagicMock
  import pytest
  from pennylane.data.base import hdf5
label_desc: Use image node_id 5 for calling a global function with example usage: test_copy_all_conflict_raise(tmp_path) without return types