def tree_contains_span(tree, span):
  """
    Assumes that tree span has been set with set_span
    Returns true if any subtree of t has exact span as the given span
    :param t:
    :param span:
    :return bool:
    """
  return span in set(t.span for t in tree.subtrees())