class_docstr: Class containing unit tests for nltk.tgrep.
class_docstr_tok: ["Class","containing","unit","tests","for","nltk.tgrep","."]
docstr: Test selecting nodes using quoted node names.
docstr_tok: ["Test","selecting","nodes","using","quoted","node","names","."]
code: def test_node_quoted(self):
      """
      Test selecting nodes using quoted node names.
      """
      tree = ParentedTree.fromstring('(N ("N" x) (N" x) ("\\" x))')
      self.assertEqual(
          list(tgrep.tgrep_positions('"N"', [tree])), [[()]]
      )
      self.assertEqual(
          list(tgrep.tgrep_positions('"\\"N\\""', [tree])), [[(0,)]]
      )
      self.assertEqual(
          list(tgrep.tgrep_positions('"N\\""', [tree])), [[(1,)]]
      )
      self.assertEqual(
          list(tgrep.tgrep_positions('"\\"\\\\\\""', [tree])), [[(2,)]]
      )
  
imports: import unittest
  from nltk import tgrep
  from nltk.tree import ParentedTree
label_desc: Use image node_id 12 for calling the TestSequenceFunctions obj's underlying member method code with example usage: obj.test_node_quoted() without return types