code: def test_snapshot_multiprocessing_execute():
      """DefaultQubit cannot execute tapes with Snapshot if `max_workers` is not `None`"""
      dev = qml.device("default.qubit", max_workers=2)
  
      tape = qml.tape.QuantumScript(
          [
              qml.Snapshot(),
              qml.Hadamard(wires=0),
              qml.Snapshot("very_important_state"),
              qml.CNOT(wires=[0, 1]),
              qml.Snapshot(),
          ],
          [qml.expval(qml.PauliX(0))],
      )
      with pytest.raises(
          RuntimeError,
          match="ProcessPoolExecutor cannot execute a QuantumScript",
      ):
          program, _ = dev.preprocess()
          program([tape])
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices import DefaultQubit, ExecutionConfig
  from pennylane.devices.default_qubit import stopping_condition
label_desc: Use image node_id 1 for calling a global function with example usage: test_snapshot_multiprocessing_execute() without return types