docstr: Check all interfaces with computational basis state counts and
  different shot vectors
docstr_tok: ["Check","all","interfaces","with","computational","basis","state","counts","and","different","shot","vectors"]
code: def test_counts_binned(
      self, shot_vec, interface, wires, basis_state, mocker
  ):  # pylint:disable=too-many-arguments
      """Check all interfaces with computational basis state counts and
      different shot vectors"""
      dev = qml.device("default.qubit.legacy", wires=3, shots=shot_vec)
      spy = mocker.spy(qml.QubitDevice, "sample")
  
      @qml.qnode(dev, interface=interface)
      def circuit():
          qml.PauliX(1)
          return qml.counts(wires=wires)
  
      res = circuit()
  
      assert isinstance(res, tuple)
      assert res[0] == {basis_state: shot_vec[0]}
      assert res[1] == {basis_state: shot_vec[1]}
      assert res[2] == {basis_state: shot_vec[2]}
      assert len(res) == len(shot_vec)
      assert sum(sum(res_bin.values()) for res_bin in res) == sum(
          shot_vec
      )
  
      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 18 for calling the TestCountsIntegration obj's underlying member method code with example usage: obj.test_counts_binned(shot_vec, interface, wires, basis_state, mocker) and returns: qml