class_docstr: Test the transform program class and its method.
docstr: Test to push back multiple transforms into a program and also the different methods of a program.
docstr_tok: ["Test","to","push","back","multiple","transforms","into","a","program","and","also","the","different","methods","of","a","program","."]
code: def test_push_back(self):
      """Test to push back multiple transforms into a program and also the different methods of a program."""
      transform_program = TransformProgram()
  
      transform1 = TransformContainer(transform=first_valid_transform)
      transform_program.push_back(transform1)
  
      assert not transform_program.is_empty()
      assert len(transform_program) == 1
      assert isinstance(transform_program[0], TransformContainer)
      assert transform_program[0].transform is first_valid_transform
  
      transform2 = TransformContainer(transform=second_valid_transform)
      transform_program.push_back(transform2)
  
      assert not transform_program.is_empty()
      assert len(transform_program) == 2
      assert isinstance(transform_program[1], TransformContainer)
      assert transform_program[1].transform is second_valid_transform
  
      transform_program.push_back(transform1)
      transform_program.push_back(transform2)
  
      sub_program_transforms = transform_program[2:]
      assert len(sub_program_transforms) == 2
      assert sub_program_transforms[0] is transform1
      assert sub_program_transforms[1] is transform2
  
      with pytest.raises(
          TransformError,
          match="Only transform container can be added to the transform program.",
      ):
          transform_program.push_back(10.0)
  
imports: from typing import Sequence, Callable
  import pytest
  import pennylane
  from pennylane.tape import QuantumScript
  from pennylane.transforms.core import transform, TransformProgram, TransformError, TransformContainer
  from pennylane.transforms.core.transform_program import _batch_postprocessing, _apply_postprocessing_stack, null_postprocessing
  from pennylane.typing import ResultBatch, Result
label_desc: Use image node_id 2 for calling the TestTransformProgram obj's underlying member method code with example usage: obj.test_push_back() without return types