class_docstr: Class that contains a transform program and the methods to interact with it.
  
  The order of execution is the order in the list containing the containers.
  
  The main case where one would have to interact directly with a transform program is when developing a
  :class:`Device <pennylane.devices.Device>`. In this case, the pre-processing method of a device
  returns a transform program. You should directly refer to the device API documentation for more details.
  
  .. warning::
  
      This class is developer-facing and should not be used directly. Instead, use
      :func:`qml.transform <pennylane.transform>` if you would like to make a custom
      transform.
  
  .. seealso:: :func:`~.pennylane.transform`
class_docstr_tok: ["Class","that","contains","a","transform","program","and","the","methods","to","interact","with","it",".","The","order","of","execution","is","the","order","in","the","list","containing","the","containers",".","The","main","case","where","one","would","have","to","interact","directly","with","a","transform","program","is","when","developing","a",":","class",":","`","Device","<","pennylane.devices.Device",">","`",".","In","this","case",",","the","pre-processing","method","of","a","device","returns","a","transform","program",".","You","should","directly","refer","to","the","device","API","documentation","for","more","details",".","..","warning",":",":","This","class","is","developer-facing","and","should","not","be","used","directly",".","Instead",",","use",":","func",":","`","qml.transform","<","pennylane.transform",">","`","if","you","would","like","to","make","a","custom","transform",".","..","seealso",":",":",":","func",":","`","~.pennylane.transform","`"]
docstr: Get the last transform container.
  
  Returns:
      TransformContainer: The last transform in the program.
  
  Raises:
      TransformError: It raises an error if the program is empty.
docstr_tok: ["Get","the","last","transform","container",".","Returns",":","TransformContainer",":","The","last","transform","in","the","program",".","Raises",":","TransformError",":","It","raises","an","error","if","the","program","is","empty","."]
code: def get_last(self):
      """Get the last transform container.
  
      Returns:
          TransformContainer: The last transform in the program.
  
      Raises:
          TransformError: It raises an error if the program is empty.
      """
      if self:
          return self._transform_program[-1]
      raise TransformError(
          "The transform program is empty and you cannot get the last transform container."
      )
  
imports: from functools import partial
  from typing import Callable, List, Tuple, Optional, Sequence
  import pennylane
  from pennylane.typing import Result, ResultBatch
  from pennylane.tape import QuantumTape
  from .transform_dispatcher import TransformContainer, TransformError, TransformDispatcher
label_desc: Use image node_id 14 for calling the TransformProgram obj's underlying member method code with example usage: obj.get_last() and returns: self