code: def test_config_errors(self):
      # Bad beta
      self.assertRaises(ValueError, FBeta, beta=0.0)
  
      # Bad average option
      self.assertRaises(ValueError, FBeta, average="mega")
  
      # F1 classes with beta different than 1.
      self.assertRaises(ValueError, F1, beta=2.0)
      self.assertRaises(ValueError, BinaryF1, beta=2.0)
  
      # Precision and recall with beta different than 1.
      self.assertWarns(UserWarning, FBeta, metric="precision", beta=2.0)
      self.assertWarns(UserWarning, FBeta, metric="recall", beta=2.0)
  
imports: from unittest import TestCase
  import numpy
  import torch
  import torch.nn
  from poutyne import F1, BinaryF1, FBeta, Model
label_desc: Use image node_id 3 for calling the BaseFBetaTest obj's underlying member method code with example usage: obj.test_config_errors() without return types