code: def test_runtime_errors(self, device: str):
      fbeta = FBetaMeasure()
      # Metric was never called.
      pytest.raises(RuntimeError, fbeta.get_metric)
  
imports: from typing import Any, Dict, List, Tuple, Union
  import torch
  from sklearn.metrics import precision_recall_fscore_support
  from torch.testing import assert_allclose
  import pytest
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase, multi_device, run_distributed_test, global_distributed_metric
  from allennlp.training.metrics import FBetaMeasure
label_desc: Use image node_id 3 for calling the FBetaMeasureTest obj's underlying member method code with example usage: obj.test_runtime_errors(device) without return types