class_docstr: Test decompositions are generated correctly.
class_docstr_tok: ["Test","decompositions","are","generated","correctly","."]
docstr: Test the private function samples from the right distribution
docstr_tok: ["Test","the","private","function","samples","from","the","right","distribution"]
code: def test_private_sample_statistics(self, coeffs):
      """Test the private function samples from the right distribution"""
      ops = [qml.PauliX(0), qml.PauliZ(1)]
      decomp = _sample_decomposition(coeffs, ops, 1.23, n=10, seed=1234)
  
      # High probability we only sample PauliX!
      assert all(isinstance(op.base, qml.PauliX) for op in decomp)
  
imports: import copy
  from functools import reduce
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.math import allclose, isclose
  from pennylane.templates.subroutines.qdrift import _sample_decomposition
label_desc: Use image node_id 2 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_private_sample_statistics(coeffs) without return types