def _get_range_name(self, facet_range: Any, value_key: str) -> Optional[str]:
        """Get the name for a range facet."""
        if facet_range.name is not None:
            if facet_range.to_ is not None:
                if float(value_key) == facet_range.to_:
                    return facet_range.name
            elif value_key == "Infinity":
                return facet_range.name
            return None

        from_val = "-Inf" if facet_range.from_ is None else str(facet_range.from_)
        to_val = "Inf" if facet_range.to_ is None else str(facet_range.to_)
        return f"{from_val}:{to_val}"
Get the name for a range facet.
src/marqo/core/semi_structured_vespa_index/semi_structured_vespa_index.py