class_docstr: Enumerate for metric variants.
class_docstr_tok: ["Enumerate","for","metric","variants","."]
code: def _name() -> str:
      return "variant"
  
imports: from typing import List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from typing_extensions import Literal
  from torchmetrics.functional.regression.utils import _check_data_shape_to_num_outputs
  from torchmetrics.utilities.checks import _check_same_shape
  from torchmetrics.utilities.data import _bincount, _cumsum, dim_zero_cat
  from torchmetrics.utilities.enums import EnumStr
label_desc: Use image node_id 1 for calling the _MetricVariant obj's underlying member method code with example usage: obj._name() and returns: str