class_docstr: Test class for `BinaryFBetaScore` metric.
class_docstr_tok: ["Test","class","for","`","BinaryFBetaScore","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_binary_fbeta_score_half_gpu(
      self, inputs, module, functional, compare, dtype
  ):
      """Test dtype support of the metric on GPU."""
      preds, target = inputs
      self.run_precision_test_gpu(
          preds=preds,
          target=target,
          metric_module=module,
          metric_functional=functional,
          metric_args={"threshold": THRESHOLD},
          dtype=dtype,
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from scipy.special import expit
  from sklearn.metrics import confusion_matrix
  from sklearn.metrics import f1_score
  from sklearn.metrics import fbeta_score
  from torch import Tensor
  from torchmetrics.classification.f_beta import BinaryF1Score, BinaryFBetaScore, F1Score, FBetaScore, MulticlassF1Score, MulticlassFBetaScore, MultilabelF1Score, MultilabelFBetaScore
  from torchmetrics.functional.classification.f_beta import binary_f1_score, binary_fbeta_score, multiclass_f1_score, multiclass_fbeta_score, multilabel_f1_score, multilabel_fbeta_score
  from torchmetrics.metric import Metric
  from unittests import NUM_CLASSES, THRESHOLD
  from unittests.classification.inputs import _binary_cases, _multiclass_cases, _multilabel_cases
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester, inject_ignore_index, remove_ignore_index
label_desc: Use image node_id 5 for calling the TestBinaryFBetaScore obj's underlying member method code with example usage: obj.test_binary_fbeta_score_half_gpu(inputs, module, functional, compare, dtype) without return types