code: def test_evaluate_from_args(self):
      kebab_args = [
          "evaluate",
          str(
              self.FIXTURES_ROOT
              / "simple_tagger_with_span_f1"
              / "serialization"
              / "model.tar.gz"
          ),
          str(self.FIXTURES_ROOT / "data" / "conll2003.txt"),
          "--cuda-device",
          "-1",
      ]
  
      args = self.parser.parse_args(kebab_args)
      metrics = evaluate_from_args(args)
      assert metrics.keys() == {
          "accuracy",
          "accuracy3",
          "precision-overall",
          "recall-overall",
          "f1-measure-overall",
          "loss",
      }
  
imports: import argparse
  import json
  from pathlib import Path
  from typing import Iterator, List, Dict
  from shutil import copyfile
  import pytest
  import torch
  from flaky import flaky
  from allennlp.commands.evaluate import evaluate_from_args, Evaluate
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.data_loaders import TensorDict
  from allennlp.models import Model
label_desc: Use image node_id 2 for calling the TestEvaluate obj's underlying member method code with example usage: obj.test_evaluate_from_args() without return types