code: def __init__(
      self, existing_node: DecisionNode, updated_node: LeafNode
  ):
      if (
          not type(existing_node) == DecisionNode
          or not existing_node.is_prunable()
      ):
          raise TypeError(
              "Pruning only valid on prunable decision nodes"
          )
      super().__init__("prune", existing_node, updated_node)
  
file_path: imodels/imodels/experimental/bartpy/mutation.py
imports: from .node import TreeNode, DecisionNode, LeafNode
label_desc: Use image node_id 1 to create a new PruneMutation object from inherited base classes: TreeMutation with example: obj = PruneMutation(existing_node, updated_node)