code: def _run_test(
      self,
      y_true,
      y_pred,
      sample_weights,
      average,
      beta,
      threshold,
      reference_result,
  ):
      fbeta = f_score_metrics.FBetaScore(
          average, beta, threshold, dtype="float32"
      )
      fbeta.update_state(y_true, y_pred, sample_weights)
      result = fbeta.result()
      self.assertAllClose(result, reference_result, atol=1e-6)
  
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 1 for calling the FBetaScoreTest obj's underlying member method code with example usage: obj._run_test(y_true, y_pred, sample_weights, average, beta, threshold, reference_result) without return types