code: def _compare_trees(got, expected):
      assert isinstance(got, ParseNode)
      if got.args:
          assert got.type == expected[0]
          for arg, expected_arg in zip(got.args, expected[1:]):
              _compare_trees(arg, expected_arg)
      else:
          assert got.type in _atomic_token_types
          assert got.token.extra == expected
  
imports: from __future__ import print_function
  import tokenize
  import six
  from six.moves import cStringIO
  from patsy import PatsyError
  from patsy.origin import Origin
  from patsy.infix_parser import Token, Operator, infix_parse, ParseNode
  from patsy.tokens import python_tokenize, pretty_untokenize
  from patsy.util import PushbackAdapter
label_desc: Use image node_id 6 for calling a global function with example usage: _compare_trees(got, expected) without return types