class_docstr: Test class for `CriticalSuccessIndex` metric.
class_docstr_tok: ["Test","class","for","`","CriticalSuccessIndex","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_csi_half_gpu(self, preds, target, threshold):
      """Test dtype support of the metric on GPU."""
      self.run_precision_test_gpu(
          preds=preds,
          target=target,
          metric_functional=critical_success_index,
          metric_args={"threshold": threshold},
      )
  
file_path: torchmetrics/tests/unittests/image/test_csi.py
imports: from functools import partial
  import pytest
  import torch
  from sklearn.metrics import jaccard_score
  from torchmetrics.functional.regression.csi import critical_success_index
  from torchmetrics.regression.csi import CriticalSuccessIndex
  from unittests import BATCH_SIZE, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 4 for calling the TestCriticalSuccessIndex obj's underlying member method code with example usage: obj.test_csi_half_gpu(preds, target, threshold) without return types