code: def test_unbatched_not_copied():
      """Test that operators containing unbatched parameters are not copied"""
      batch_size = 5
      inputs = np.random.uniform(
          0, np.pi, (batch_size, 2), requires_grad=False
      )
      weights = np.random.uniform(-np.pi, np.pi, (2,))
  
      ops = [
          qml.RY(weights[0], wires=0),
          qml.AngleEmbedding(inputs, wires=range(2), rotation="Y"),
          qml.RY(weights[1], wires=1),
      ]
      meas = [qml.expval(qml.PauliZ(1))]
  
      tape = qml.tape.QuantumScript(ops, meas)
      tape.trainable_params = [0, 2]
  
      new_tapes = qml.batch_input(tape, argnum=1)[0]
      assert len(new_tapes) == batch_size
  
      for new_tape in new_tapes:
          # same instance of RY operators
          assert new_tape.operations[0] is tape.operations[0]
          assert new_tape.operations[2] is tape.operations[2]
  
          # different instance of AngleEmbedding
          assert new_tape.operations[1] is not tape.operations[1]
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: test_unbatched_not_copied() without return types