code: def _make_probs(
      tape: qml.tape.QuantumTape,
  ) -> (Sequence[qml.tape.QuantumTape], Callable):
      """Ignores the return types of the provided circuit and creates a new one
      that outputs probabilities"""
      qscript = qml.tape.QuantumScript(
          tape.operations, [qml.probs(tape.wires)], shots=tape.shots
      )
  
      def post_processing_fn(res):
          # only a single probs measurement, so no stacking needed
          return res[0]
  
      return [qscript], post_processing_fn
  
imports: from functools import partial
  from typing import Callable, Sequence
  import pennylane
  from pennylane.tape import QuantumTape
  from pennylane.devices import DefaultQubit, DefaultQubitLegacy, DefaultMixed
  from pennylane.measurements import StateMP, DensityMatrixMP
  from pennylane.gradients import adjoint_metric_tensor, metric_tensor
  from pennylane import transform
label_desc: Use image node_id 12 for calling a global function with example usage: _make_probs(tape) and returns: list,  post_processing_fn, res