code: def test_srl_reader_can_filter_by_domain(self):
      conll_reader = SrlReader(domain_identifier="subdomain2")
      instances = conll_reader.read(
          AllenNlpTestCase.FIXTURES_ROOT / "conll_2012"
      )
      instances = ensure_list(instances)
      # If we'd included the folder, we'd have 9 instances.
      assert len(instances) == 2
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/dataset_readers/srl_dataset_reader_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  import pytest
  from allennlp.data.dataset_readers.semantic_role_labeling import SrlReader
  from allennlp.common.util import ensure_list
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 2 for calling the TestSrlReader obj's underlying member method code with example usage: obj.test_srl_reader_can_filter_by_domain() without return types