code: def _multi_target_sk_accuracy(preds, target, num_outputs):
      """Compute accuracy over multiple outputs."""
      return [
          accuracy_score(
              torch.argmax(preds[:, :, i], dim=1), target[:, i]
          )
          for i in range(num_outputs)
      ]
  
imports: from functools import partial
  from typing import Any
  import pytest
  import torch
  from sklearn.metrics import accuracy_score
  from sklearn.metrics import r2_score
  from torch import Tensor, tensor
  from torchmetrics import Metric
  from torchmetrics.classification import ConfusionMatrix, MulticlassAccuracy
  from torchmetrics.regression import R2Score
  from torchmetrics.wrappers.multioutput import MultioutputWrapper
  from unittests import BATCH_SIZE, NUM_BATCHES, NUM_CLASSES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling a global function with example usage: _multi_target_sk_accuracy(preds, target, num_outputs) and returns: unknown