code: def test_load_by_name(self):
      task_suite = TaskSuite.constructor(name="fake-task-suite")
  
      assert task_suite._fake_arg1 is None
      assert task_suite._fake_arg2 is None
  
      assert len(task_suite.suite.tests) == 1
  
      with pytest.raises(ConfigurationError):
          TaskSuite.constructor(name="suite-that-does-not-exist")
  
file_path: allennlp/tests/confidence_checks/task_checklists/task_suite_test.py
imports: import pytest
  from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.common.checks import ConfigurationError
  from allennlp.models.archival import load_archive
  from allennlp.predictors import Predictor
  from allennlp.common.testing.checklist_test import FakeTaskSuite
label_desc: Use image node_id 3 for calling the TestTaskSuite obj's underlying member method code with example usage: obj.test_load_by_name() without return types