code: def test_config(self):
      fbeta_obj = f_score_metrics.FBetaScore(
          beta=0.5, threshold=0.3, average=None, dtype="float32"
      )
      self.assertEqual(fbeta_obj.beta, 0.5)
      self.assertEqual(fbeta_obj.average, None)
      self.assertEqual(fbeta_obj.threshold, 0.3)
      self.assertEqual(fbeta_obj.dtype, "float32")
  
      # Check save and restore config
      fbeta_obj2 = f_score_metrics.FBetaScore.from_config(
          fbeta_obj.get_config()
      )
      self.assertEqual(fbeta_obj2.beta, 0.5)
      self.assertEqual(fbeta_obj2.average, None)
      self.assertEqual(fbeta_obj2.threshold, 0.3)
      self.assertEqual(fbeta_obj2.dtype, "float32")
  
file_path: keras/keras/metrics/f_score_metrics_test.py
imports: import numpy
  from absl.testing import parameterized
  from keras import testing
  from keras.metrics import f_score_metrics
label_desc: Use image node_id 2 for calling the FBetaScoreTest obj's underlying member method code with example usage: obj.test_config() without return types