class_docstr: Integration tests for default.gaussian. This test ensures it integrates
  properly with the PennyLane interface, in particular QNode.
class_docstr_tok: ["Integration","tests","for","default.gaussian",".","This","test","ensures","it","integrates","properly","with","the","PennyLane","interface",",","in","particular","QNode","."]
docstr: Test that the default gaussian plugin provides correct result for high shot number
docstr_tok: ["Test","that","the","default","gaussian","plugin","provides","correct","result","for","high","shot","number"]
code: def test_nonzero_shots(self, tol_stochastic):
      """Test that the default gaussian plugin provides correct result for high shot number"""
  
      shots = 10**4
      dev = qml.device("default.gaussian", wires=1, shots=shots)
  
      p = 0.543
  
      @qml.qnode(dev)
      def circuit(x):
          """Test quantum function"""
          qml.Displacement(x, 0, wires=0)
          return qml.expval(qml.QuadX(0))
  
      runs = []
      for _ in range(100):
          runs.append(circuit(p))
  
      assert np.mean(runs) == pytest.approx(
          p * np.sqrt(2 * hbar), abs=tol_stochastic
      )
  
imports: import numpy
  import numpy.random
  import pytest
  from scipy.linalg import block_diag
  from scipy.special import factorial
  import pennylane
  from pennylane import DeviceError
  from pennylane.devices.default_gaussian import fock_prob, rotation, squeezing, quadratic_phase, beamsplitter, two_mode_squeezing, controlled_addition, controlled_phase, vacuum_state, coherent_state, squeezed_state, displaced_squeezed_state, thermal_state
  from pennylane.wires import Wires
label_desc: Use image node_id 7 for calling the TestDefaultGaussianIntegration obj's underlying member method code with example usage: obj.test_nonzero_shots(tol_stochastic) and returns: qml