code: def test_errors_on_wrong_input():
      """Check that type errors are raised when inputs are of the wrong type."""
      with pytest.raises(TypeError, match="Expected *"):
          MultitaskWrapper(1)
  
      with pytest.raises(TypeError, match="Expected *"):
          MultitaskWrapper(None)
  
      with pytest.raises(TypeError, match="Expected *"):
          MultitaskWrapper({"Classification": 1})
  
file_path: torchmetrics/tests/unittests/wrappers/test_multitask.py
imports: import re
  import pytest
  import torch
  from torchmetrics import MetricCollection
  from torchmetrics.classification import BinaryAccuracy, BinaryF1Score
  from torchmetrics.regression import MeanAbsoluteError, MeanSquaredError
  from torchmetrics.wrappers import MultitaskWrapper
  from unittests import BATCH_SIZE, NUM_BATCHES
  from unittests.helpers import seed_all
label_desc: Use image node_id 3 for calling a global function with example usage: test_errors_on_wrong_input() without return types