code: def test_analytic_deprecation():
      """Tests if the kwarg `analytic` is used and displays error message."""
      msg = "The analytic argument has been replaced by shots=None. "
      msg += "Please use shots=None instead of analytic=True."
  
      with pytest.raises(
          DeviceError,
          match=msg,
      ):
          qml.device(
              "default.gaussian", wires=1, shots=1, analytic=True
          )
  
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 a global function with example usage: test_analytic_deprecation() without return types