def METHOD_NAME(monkeypatch):
    from acts.examples import TGeoDetector, Interval
    # monkeypatch the comparison operator
    def eq(self, other):
        return self.lower == other.lower and self.upper == other.upper
    monkeypatch.setattr(Interval, "__eq__", eq)
    Volume = TGeoDetector.Config.Volume
    v = Volume(name="blubb")
    assert v
    for key in ("binToleranceR", "binToleranceZ", "binTolerancePhi"):
        v = Volume(**{key: Interval(4, 5)})
        assert getattr(v, key) == Interval(4, 5)
        v = Volume(**{key: (4, 5)})
        assert getattr(v, key) == Interval(4, 5)
        v = Volume(**{key: (None, 5)})
        assert getattr(v, key) == Interval(None, 5)
        v = Volume(**{key: (4, None)})
        assert getattr(v, key) == Interval(4, None)