class_docstr: Test that stoch_pulse_grad integrates correctly with QNodes and ML interfaces.
class_docstr_tok: ["Test","that","stoch_pulse_grad","integrates","correctly","with","QNodes","and","ML","interfaces","."]
docstr: Test that a simple qnode that returns an expectation value and probabilities
  can be differentiated with stoch_pulse_grad with use_broadcasting.
docstr_tok: ["Test","that","a","simple","qnode","that","returns","an","expectation","value","and","probabilities","can","be","differentiated","with","stoch_pulse_grad","with","use_broadcasting","."]
code: def test_multi_return_broadcasting_multi_shots_raises(self, dev_name):
      """Test that a simple qnode that returns an expectation value and probabilities
      can be differentiated with stoch_pulse_grad with use_broadcasting.
      """
      import jax
      import jax.numpy as jnp
  
      jax.config.update("jax_enable_x64", True)
      shots = [100, 100]
      key = "prng_key" if dev_name == "default.qubit.jax" else "seed"
      dev = qml.device(
          dev_name,
          wires=1,
          shots=shots,
          **{key: jax.random.PRNGKey(74)},
      )
      T = 0.2
      ham_single_q_const = qml.pulse.constant * qml.PauliY(0)
  
      @qml.qnode(
          dev,
          interface="jax",
          diff_method=stoch_pulse_grad,
          num_split_times=3,
          use_broadcasting=True,
      )
      def circuit(params):
          qml.evolve(ham_single_q_const)(params, T)
          return qml.probs(wires=0), qml.expval(qml.PauliZ(0))
  
      params = [jnp.array(0.4)]
      with pytest.raises(
          NotImplementedError,
          match="Broadcasting, multiple measurements and",
      ):
          jax.jacobian(circuit)(params)
      jax.clear_caches()
  
imports: import warnings
  import copy
  import pytest
  import numpy
  import pennylane
  from pennylane.gradients.general_shift_rules import eigvals_to_frequencies, generate_shift_rule
  from pennylane.gradients.pulse_gradient import _parshift_and_integrate, _split_evol_ops, _split_evol_tape, stoch_pulse_grad
label_desc: Use image node_id 7 for calling the TestStochPulseGradIntegration obj's underlying member method code with example usage: obj.test_multi_return_broadcasting_multi_shots_raises(dev_name) and returns: qml,  qml