code: def test_copy_all_conflict_ignore(tmp_path):
      """Test that on_conflict=ignore does nothing 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["y"] = 3
      dst["x"] = 2
  
      assert int(dst["y"][()]) == 3
      assert int(dst["x"][()]) == 2
  
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 6 for calling a global function with example usage: test_copy_all_conflict_ignore(tmp_path) without return types