class_docstr: Test class for `TschuprowsT` metric.
class_docstr_tok: ["Test","class","for","`","TschuprowsT","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_tschuprows_ta(self, ddp, preds, target):
      """Test class implementation of metric."""
      metric_args = {
          "bias_correction": False,
          "num_classes": NUM_CLASSES,
      }
      self.run_class_metric_test(
          ddp=ddp,
          preds=preds,
          target=target,
          metric_class=TschuprowsT,
          reference_metric=_pd_tschuprows_t,
          metric_args=metric_args,
      )
  
file_path: torchmetrics/tests/unittests/nominal/test_tschuprows.py
imports: import itertools
  import operator
  import pandas
  import pytest
  import torch
  from lightning_utilities.core.imports import compare_version
  from scipy.stats.contingency import association
  from torchmetrics.functional.nominal.tschuprows import tschuprows_t, tschuprows_t_matrix
  from torchmetrics.nominal.tschuprows import TschuprowsT
  from unittests import BATCH_SIZE, NUM_BATCHES, _Input
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 1 for calling the TestTschuprowsT obj's underlying member method code with example usage: obj.test_tschuprows_ta(ddp, preds, target) without return types