class_docstr: Tests that sampling is correctly implemented.
class_docstr_tok: ["Tests","that","sampling","is","correctly","implemented","."]
docstr: Test that the sample function raises an error if multiple wires are given
docstr_tok: ["Test","that","the","sample","function","raises","an","error","if","multiple","wires","are","given"]
code: def test_sample_error_multi_wire(self, gaussian_device_2_wires):
      """Test that the sample function raises an error if multiple wires are given"""
  
      with pytest.raises(
          ValueError, match="Only one mode can be measured in homodyne"
      ):
          gaussian_device_2_wires.sample("QuadP", [0, 1], [])
  
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 5 for calling the TestSample obj's underlying member method code with example usage: obj.test_sample_error_multi_wire(gaussian_device_2_wires) without return types