def METHOD_NAME(self, item: typing.Any, extra: typing.Any | None = None, **kwargs):
    """Add a point to the window, optionally with extra metadata.
    Parameters
    ----------
    item
        The data intended to be provided to the distance function. It is always
        the first item in the window, and typically this will be a tuple
        (x,y) with features `x` and class or value `y`.
    extra:
        An extra set of metadata to add to the window that is not passed to
        the distance function, and allows easy customization without needing
        to always write a custom distance function.
    """
    self.window.METHOD_NAME((item, *(extra or [])))