code: def test_dataset_path_iterator(self):
      reader = Ontonotes()
      files = list(
          reader.dataset_path_iterator(
              self.FIXTURES_ROOT / "conll_2012"
          )
      )
      expected_paths = [
          unicode(
              self.FIXTURES_ROOT
              / "conll_2012"
              / "subdomain"
              / "example.gold_conll"
          ),
          unicode(
              self.FIXTURES_ROOT
              / "conll_2012"
              / "subdomain2"
              / "example.gold_conll"
          ),
      ]
      assert len(files) == len(expected_paths)
      assert set(files) == set(expected_paths)
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/dataset_readers/dataset_utils/ontonotes_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  from nltk import Tree
  from allennlp.data.dataset_readers.dataset_utils import Ontonotes
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 2 for calling the TestOntonotes obj's underlying member method code with example usage: obj.test_dataset_path_iterator() without return types