code: def test_perl_eval_script_can_run_on_printed_conll_files(self):
      bio_tags = ["B-ARG-1", "I-ARG-1", "O", "B-V", "B-ARGM-ADJ", "O"]
      sentence = ["Mark", "and", "Matt", "were", "running", "fast", "."]
  
      gold_file_path = os.path.join(
          self.TEST_DIR, "gold_conll_eval.txt"
      )
      prediction_file_path = os.path.join(
          self.TEST_DIR, "prediction_conll_eval.txt"
      )
      with open(gold_file_path, "a+") as gold_file, open(
          prediction_file_path, "a+"
      ) as prediction_file:
          # Use the same bio tags as prediction vs gold to make it obvious by looking
          # at the perl script output if something is wrong. Write them twice to
          # ensure that the perl script deals with multiple sentences.
          write_to_conll_eval_file(
              gold_file,
              prediction_file,
              4,
              sentence,
              bio_tags,
              bio_tags,
          )
          write_to_conll_eval_file(
              gold_file,
              prediction_file,
              4,
              sentence,
              bio_tags,
              bio_tags,
          )
  
      perl_script_command = [
          "perl",
          unicode(self.TOOLS_ROOT / "srl-eval.pl"),
          prediction_file_path,
          gold_file_path,
      ]
      exit_code = subprocess.check_call(perl_script_command)
      assert exit_code == 0
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import subprocess
  import os
  from flaky import flaky
  import pytest
  import numpy
  from allennlp.common.testing import ModelTestCase
  from allennlp.common.params import Params
  from allennlp.common.checks import ConfigurationError
  from allennlp.models.semantic_role_labeler import convert_bio_tags_to_conll_format
  from allennlp.models import Model
  from allennlp.models.semantic_role_labeler import write_to_conll_eval_file
  from allennlp.nn.util import get_lengths_from_binary_sequence_mask
  from io import open
label_desc: Use image node_id 7 for calling the SemanticRoleLabelerTest obj's underlying member method code with example usage: obj.test_perl_eval_script_can_run_on_printed_conll_files() without return types