code: def test_no_base_metric() -> None:
      """Tests that ValueError is raised when no base_metric is passed."""
      with pytest.raises(
          ValueError, match=r"Expected base metric to be an instance .*"
      ):
          MinMaxMetric([])
  
imports: from copy import deepcopy
  from functools import partial
  from typing import Any
  import pytest
  import torch
  from torch import Tensor
  from torchmetrics.classification import BinaryAccuracy, BinaryConfusionMatrix, MulticlassAccuracy
  from torchmetrics.regression import MeanSquaredError
  from torchmetrics.wrappers import MinMaxMetric
  from unittests import BATCH_SIZE, NUM_BATCHES, NUM_CLASSES
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_base_metric() without return types