<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(key, gauge=None, default=float("nan"), **dims):
 """Adds gauge with dimensions to the global pyformance registry"""

    return global_registry().gauge(key, gauge=gauge, default=default, **dims)