<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gauge(self, name, producer):
 """Creates or gets an existing gauge. :param name: The name :return: The created or existing gauge for the given name """

        return self._get_or_add_stat(name, functools.partial(Gauge, producer))