code: def test_ner_reader_can_filter_by_domain(self):
      conll_reader = OntonotesNamedEntityRecognition(
          domain_identifier="subdomain2"
      )
      instances = conll_reader.read(
          AllenNlpTestCase.FIXTURES_ROOT / "conll_2012"
      )
      instances = ensure_list(instances)
      assert len(instances) == 1
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/dataset_readers/ontonotes_ner_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  import pytest
  from allennlp.data.dataset_readers.ontonotes_ner import OntonotesNamedEntityRecognition
  from allennlp.common.util import ensure_list
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 2 for calling the TestOntonotesNamedEntityRecognitionReader obj's underlying member method code with example usage: obj.test_ner_reader_can_filter_by_domain() without return types