code: def _test_fbeta_score(
      actuals, preds, sample_weights, avg, beta_val, result, threshold
  ):
      tf_score = _test_tf(
          avg, beta_val, actuals, preds, sample_weights, threshold
      )
      np.testing.assert_allclose(tf_score, result, atol=1e-7, rtol=1e-6)
  
file_path: rasa/tests/utils/tensorflow/test_metrics.py
imports: import numpy
  import pytest
  import tensorflow
  from rasa.utils.tensorflow.metrics import FBetaScore, F1Score
label_desc: Use image node_id 3 for calling a global function with example usage: _test_fbeta_score(actuals, preds, sample_weights, avg, beta_val, result, threshold) without return types