class_docstr: A base class for metrics.
docstr: Get the math notation for the range of this metric.
docstr_tok: ["Get","the","math","notation","for","the","range","of","this","metric","."]
code: def get_range(cls) -> str:
      """Get the math notation for the range of this metric."""
      docdata = get_docdata(cls) or {}
      left_bracket = (
          "("
          if cls.value_range.lower is None
          or not cls.value_range.lower_inclusive
          else "["
      )
      left = docdata.get(
          "tight_lower",
          cls.value_range._coerce(cls.value_range.lower, low=True),
      )
      right_bracket = (
          ")"
          if cls.value_range.upper is None
          or not cls.value_range.upper_inclusive
          else "]"
      )
      right = docdata.get(
          "tight_upper",
          cls.value_range._coerce(cls.value_range.upper, low=False),
      )
      return f"{left_bracket}{left}, {right}{right_bracket}".replace(
          "inf", "∞"
      )
  
imports: from dataclasses import dataclass
  from typing import ClassVar, Collection, Optional
  import numpy
  from docdata import get_docdata
  from scipy import stats
  from ..utils import ExtraReprMixin, camel_to_snake
label_desc: Use image node_id 4 for calling the Metric obj's underlying member method code with example usage: obj.get_range(cls) and returns: left_bracket, left, str, right, right_bracket