code: def test_correctness(self):
      f1 = f_score_metrics.F1Score()
      fbeta = f_score_metrics.FBetaScore(beta=1.0)
  
      y_true = np.array(
          [
              [1, 0, 0],
              [0, 1, 0],
              [0, 0, 1],
              [1, 0, 0],
              [1, 0, 0],
              [0, 0, 1],
          ]
      )
      y_pred = np.array(
          [
              [0.9, 0.1, 0],
              [0.2, 0.6, 0.2],
              [0, 0, 1],
              [0.4, 0.3, 0.3],
              [0, 0.9, 0.1],
              [0, 0, 1],
          ]
      )
  
      fbeta.update_state(y_true, y_pred)
      f1.update_state(y_true, y_pred)
      self.assertAllClose(fbeta.result(), f1.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 2 for calling the F1ScoreTest obj's underlying member method code with example usage: obj.test_correctness() without return types