code: def test_single_expval(mps, expected_exec, expected_shots):
      dev = qml.device("default.qubit")
      tape = qml.tape.QuantumScript([], mps, shots=10)
  
      with dev.tracker:
          dev.execute(tape)
  
      assert dev.tracker.totals["executions"] == expected_exec
      assert dev.tracker.totals["simulations"] == 1
      assert dev.tracker.totals["shots"] == expected_shots
  
      if not isinstance(
          tape.measurements[0],
          (
              qml.measurements.ShadowExpvalMP,
              qml.measurements.ClassicalShadowMP,
          ),
      ):
          tape = qml.tape.QuantumScript(
              [qml.RX((1.2, 2.3, 3.4), wires=0)], mps, shots=10
          )
  
          with dev.tracker:
              dev.execute(tape)
  
          assert dev.tracker.totals["executions"] == 3 * expected_exec
          assert dev.tracker.totals["simulations"] == 1
          assert dev.tracker.totals["shots"] == 3 * expected_shots
  
file_path: pennylane/tests/devices/test_default_qubit_tracking.py
imports: import pytest
  import numpy
  import pennylane
  from pennylane.resource import Resources
  from pennylane.devices import ExecutionConfig
label_desc: Use image node_id 1 for calling a global function with example usage: test_single_expval(mps, expected_exec, expected_shots) without return types