code: def test_no_sampling():
      """Tests for the no_sampling transform."""
  
      tape1 = qml.tape.QuantumScript(shots=None)
      batch, _ = no_sampling(tape1)
      assert batch[0] is tape1
  
      tape2 = qml.tape.QuantumScript(shots=2)
      with pytest.raises(
          qml.DeviceError,
          match="Finite shots are not supported with abc",
      ):
          no_sampling(tape2, name="abc")
  
imports: import pytest
  import pennylane
  from pennylane.operation import Operation
  from pennylane.tape import QuantumScript
  from pennylane import DeviceError
  from pennylane.devices.preprocess import no_sampling, validate_device_wires, validate_multiprocessing_workers, validate_adjoint_trainable_params, _operator_decomposition_gen, decompose, validate_observables, validate_measurements
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_sampling() without return types