class_docstr: DummyMetric class for testing composition component.
class_docstr_tok: ["DummyMetric","class","for","testing","composition","component","."]
docstr: Compute result.
docstr_tok: ["Compute","result","."]
code: def compute(self):
      """Compute result."""
      return tensor(self._val_to_return)
  
imports: from operator import neg, pos
  from typing import Any
  import pytest
  import torch
  from torch import tensor
  from torchmetrics.metric import CompositionalMetric, Metric
label_desc: Use image node_id 3 for calling the DummyMetric obj's underlying member method code with example usage: obj.compute() and returns: tensor