code: def test_ner_model(self):
      data_dir = (
          "/home/TestData/nlp/token_classification_punctuation/gmb"
      )
      model = models.TokenClassificationModel.from_pretrained(
          "ner_en_bert"
      )
      metrics = get_metrics(data_dir, model)
  
      assert abs(metrics["precision"] - 96.0937) < 0.001
      assert abs(metrics["recall"] - 96.0146) < 0.001
      assert abs(metrics["f1"] - 95.6076) < 0.001
      assert int(model.classification_report.total_examples) == 202
  
file_path: NeMo/tests/collections/nlp/test_pretrained_models_performance.py
imports: import os
  from pathlib import Path
  from shutil import rmtree
  from unittest import TestCase
  import pytest
  import pytorch_lightning
  from omegaconf import OmegaConf
  import nemo.collections.nlp.models
label_desc: Use image node_id 3 for calling the TestPretrainedModelPerformance obj's underlying member method code with example usage: obj.test_ner_model() without return types