code: def test_equals():
      """
      Check one tree from the actual dataset for ==
  
      when built with compound Open, this didn't work because of a silly bug
      """
      text = "(ROOT (S (NP (DT The) (NNP Arizona) (NNPS Corporations) (NNP Commission)) (VP (VBD authorized) (NP (NP (DT an) (ADJP (CD 11.5)) (NN %) (NN rate) (NN increase)) (PP (IN at) (NP (NNP Tucson) (NNP Electric) (NNP Power) (NNP Co.))) (, ,) (UCP (ADJP (ADJP (RB substantially) (JJR lower)) (SBAR (IN than) (S (VP (VBN recommended) (NP (JJ last) (NN month)) (PP (IN by) (NP (DT a) (NN commission) (NN hearing) (NN officer))))))) (CC and) (NP (NP (QP (RB barely) (PDT half)) (DT the) (NN rise)) (VP (VBN sought) (PP (IN by) (NP (DT the) (NN utility)))))))) (. .)))"
  
      trees = tree_reader.read_trees(text)
      assert len(trees) == 1
      tree = trees[0]
  
      assert tree == tree
  
      trees2 = tree_reader.read_trees(text)
      tree2 = trees2[0]
  
      assert tree is not tree2
      assert tree == tree2
  
imports: import pytest
  from stanza.models.constituency.parse_tree import Tree
  from stanza.models.constituency import tree_reader
  from stanza.tests import *
label_desc: Use image node_id 16 for calling a global function with example usage: test_equals() without return types