<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, *args, **kwargs):
 """ Compatability wrapper for Agents that do not submit gauge metrics with custom timestamps """

        orig_gauge = super(Nagios, self).gauge
        # remove 'timestamp' arg if the base class' gauge function does not accept a 'timestamp' arg
        if 'timestamp' in kwargs and 'timestamp' not in getargspec(orig_gauge).args:
            del kwargs['timestamp']

        orig_gauge(*args, **kwargs)