def set_function(self, f):
        def samples(self):
            return (('', {}, float(f())), )
        self._samples = types.MethodType(samples, self)
Deleting the Content of a Resource    
dataset/ETHPy150Open prometheus/client_python/prometheus_client/core.py/Gauge.set_function--crossover with--dataset/ETHPy150Open swordapp/python-client-sword2/sword2/connection.py/Connection.delete_content_of_resource