code: def test_config_errors(self, device: str):
      # Bad beta
      pytest.raises(
          ConfigurationError, FBetaMultiLabelMeasure, beta=0.0
      )
  
      # Bad average option
      pytest.raises(
          ConfigurationError, FBetaMultiLabelMeasure, average="mega"
      )
  
      # Empty input labels
      pytest.raises(
          ConfigurationError, FBetaMultiLabelMeasure, labels=[]
      )
  
imports: from typing import Dict, List, Tuple, Union, Any
  import pytest
  import torch
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.testing import AllenNlpTestCase, global_distributed_metric, multi_device, run_distributed_test
  from sklearn.metrics import precision_recall_fscore_support
  from torch.testing import assert_allclose
  from allennlp.training.metrics import FBetaMultiLabelMeasure
label_desc: Use image node_id 2 for calling the FBetaMultiLabelMeasureTest obj's underlying member method code with example usage: obj.test_config_errors(device) without return types