def METHOD_NAME(
    self, val: Optional[Union[Tensor, Sequence[Tensor]]] = None, ax: Optional[_AX_TYPE] = None
) -> _PLOT_OUT_TYPE:
    """Plot a single or multiple values from the metric.
    Args:
        val: Either a single result from calling `metric.forward` or `metric.compute` or a list of these results.
            If no value is provided, will automatically call `metric.compute` and plot that result.
        ax: An matplotlib axis object. If provided will add plot to that axis
    Returns:
        Figure and Axes object
    Raises:
        ModuleNotFoundError:
            If `matplotlib` is not installed
    .. plot::
        :scale: 75
        >>> # Example plotting a single value
        >>> from torchmetrics.text import SQuAD
        >>> metric = SQuAD()
        >>> preds = [{"prediction_text": "1976", "id": "56e10a3be3433e1400422b22"}]
        >>> target = [{"answers": {"answer_start": [97], "text": ["1976"]}, "id": "56e10a3be3433e1400422b22"}]
        >>> metric.update(preds, target)
        >>> fig_, ax_ = metric.plot()
    .. plot::
        :scale: 75
        >>> # Example plotting multiple values
        >>> from torchmetrics.text import SQuAD
        >>> metric = SQuAD()
        >>> preds = [{"prediction_text": "1976", "id": "56e10a3be3433e1400422b22"}]
        >>> target = [{"answers": {"answer_start": [97], "text": ["1976"]}, "id": "56e10a3be3433e1400422b22"}]
        >>> values = [ ]
        >>> for _ in range(10):
        ...     values.append(metric(preds, target))
        >>> fig_, ax_ = metric.plot(values)
    """
    return self._plot(val, ax)