code: def is_nonterminal(symbol):
      if symbol == "identity":
          return False
      if "lambda " in symbol:
          return False
      if symbol in set(["x", "y", "z"]):
          return False
      return True
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/nn/decoding/grammar_state_test.py
imports: from __future__ import with_statement
  from __future__ import absolute_import
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.nn.decoding import GrammarState
label_desc: Use image node_id 1 for calling a global function with example usage: is_nonterminal(symbol) and returns: True, False, False, False