code: def test_hamiltonian_grouping_indices():
      """Test that bind_new_parameters with a Hamiltonian preserves the grouping indices."""
      H = qml.Hamiltonian([1.0, 2.0], [qml.PauliX(0), qml.PauliX(1)])
      H.compute_grouping()
      new_H = bind_new_parameters(H, [2.3, 3.4])
      assert H.grouping_indices == new_H.grouping_indices
      assert new_H.data == (2.3, 3.4)
  
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 6 for calling a global function with example usage: test_hamiltonian_grouping_indices() without return types