code: def test_config_errors(self, device: str):
      # Bad beta
      pytest.raises(ConfigurationError, FBetaMeasure, beta=0.0)
  
      # Bad average option
      pytest.raises(ConfigurationError, FBetaMeasure, average="mega")
  
      # Empty input labels
      pytest.raises(ConfigurationError, FBetaMeasure, labels=[])
  
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 2 for calling the FBetaMeasureTest obj's underlying member method code with example usage: obj.test_config_errors(device) without return types