code: def test_counts_no_op_finite_shots(
      interface, wires, basis_state, mocker
  ):
      """Check all interfaces with computational basis state counts and finite shot"""
      n_shots = 10
      dev = qml.device("default.qubit.legacy", wires=3, shots=n_shots)
      spy = mocker.spy(qml.QubitDevice, "sample")
  
      @qml.qnode(dev, interface=interface)
      def circuit():
          qml.PauliX(1)
          return qml.counts(wires=wires)
  
      res = circuit()
      assert res == {basis_state: n_shots}
      assert qml.math.get_interface(res[basis_state]) == interface
  
      custom_measurement_process(dev, spy)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Counts
  from pennylane.operation import Operator
label_desc: Use image node_id 2 for calling a global function with example usage: test_counts_no_op_finite_shots(interface, wires, basis_state, mocker) and returns: qml