Pregunta de entrevista de Sage

Write a function which, given two trees, determines whether or not the second tree is a subtree of the first tree.