code: def test_no_warning_on_custom_forward(metric_class):
      """If metric is using custom forward, full_state_update is irrelevant."""
  
      class UnsetProperty(metric_class):
          full_state_update = None
  
          def forward(self, *args: Any, **kwargs: Any):
              self.update(*args, **kwargs)
  
      with no_warning_call(
          UserWarning,
          match="Torchmetrics v0.9 introduced a new argument class property called.*",
      ):
          UnsetProperty()
  
imports: import os
  import pickle
  from collections import OrderedDict
  from typing import Any
  from unittest.mock import Mock
  import cloudpickle
  import numpy
  import psutil
  import pytest
  import torch
  from torch import Tensor, tensor
  from torch.nn import Module, Parameter
  from torchmetrics.classification import BinaryAccuracy
  from torchmetrics.regression import PearsonCorrCoef
  from unittests.helpers import seed_all
  from unittests.helpers.testers import DummyListMetric, DummyMetric, DummyMetricMultiOutput, DummyMetricSum
  from unittests.helpers.utilities import no_warning_call
label_desc: Use image node_id 26 for calling a global function with example usage: test_no_warning_on_custom_forward(metric_class) without return types