code: def test_hamiltonian(H, new_coeffs, expected_H):
      """Test that `bind_new_parameters` with `Hamiltonian` returns a new
      operator with the new parameters without mutating the original
      operator."""
      new_H = bind_new_parameters(H, new_coeffs)
  
      assert qml.equal(new_H, expected_H)
      assert new_H is not H
  
file_path: pennylane/tests/ops/functions/test_bind_new_parameters.py
imports: import pytest
  from gate_data import X, Y, Z, I, GELL_MANN
  import pennylane
  from pennylane.ops.functions import bind_new_parameters
  from pennylane.operation import Tensor
label_desc: Use image node_id 5 for calling a global function with example usage: test_hamiltonian(H, new_coeffs, expected_H) without return types