docstr: Check all interfaces with observable measurement counts and finite
  shot
docstr_tok: ["Check","all","interfaces","with","observable","measurement","counts","and","finite","shot"]
code: def test_counts_operator_finite_shots(self, interface, mocker):
      """Check all interfaces with observable measurement 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():
          return qml.counts(qml.PauliZ(0))
  
      res = circuit()
      assert res == {1: n_shots}
  
      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 17 for calling the TestCountsIntegration obj's underlying member method code with example usage: obj.test_counts_operator_finite_shots(interface, mocker) and returns: qml