class_docstr: Test the creation of a hash on a CircuitGraph
class_docstr_tok: ["Test","the","creation","of","a","hash","on","a","CircuitGraph"]
docstr: Tests the hashes for probs and sample return types
docstr_tok: ["Tests","the","hashes","for","probs","and","sample","return","types"]
code: def test_serialize_numeric_arguments_observables_probs_sample(
      self, obs, expected_string
  ):
      """Tests the hashes for probs and sample return types"""
      dev = qml.device("default.qubit", wires=2)
  
      def circuit1():
          return obs(wires=0)
  
      node1 = qml.QNode(circuit1, dev)
      node1.construct([], {})
      circuit_hash_1 = node1.qtape.graph.serialize()
  
      assert circuit_hash_1 == expected_string
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Tensor
  from pennylane.circuit_graph import CircuitGraph
  from pennylane.wires import Wires
label_desc: Use image node_id 3 for calling the TestCircuitGraphHash obj's underlying member method code with example usage: obj.test_serialize_numeric_arguments_observables_probs_sample(obs, expected_string) and returns: obs