human
I wrote the below code

    from .. import units as u
    from matplotlib import units
    from matplotlib import ticker
    def rad_fn(x, pos=None):
        n = int((((x / np.pi) * 2.0) + 0.25))
        if (n == 0):
            return u'0'
        elif (n == 1):
            return u'\u03c0/2'
        elif (n == 2):
            return u'\u03c0'
        elif ((n % 2) == 0):
            return u'{0}\u03c0'.format((n / 2))
        else:
            return u'{0}\u03c0/2'.format(n)
    class MplQuantityConverter(units.ConversionInterface, ):
        def __init__(self):
            if (u.Quantity not in units.registry):
                units.registry[u.Quantity] = self
                self._remove = True
            else:
                self._remove = False
        @staticmethod
        def axisinfo(unit, axis):
            if (unit == u.radian):
                return units.AxisInfo(majloc=ticker.MultipleLocator(base=(np.pi / 2)), majfmt=ticker.FuncFormatter(rad_fn), label=unit.to_string())
            elif (unit == u.degree):
                return units.AxisInfo(majloc=ticker.AutoLocator(), majfmt=ticker.FormatStrFormatter(u'%i\xb0'), label=unit.to_string())
            elif (unit is not None):
                return units.AxisInfo(label=unit.to_string(format))
            return None
        @staticmethod
        def convert(val, unit, axis):
            if isinstance(val, u.Quantity):
                return val.to_value(unit)
            else:
                return val
        @staticmethod
        def default_units(x, axis):
            if hasattr(x, u'unit'):
                return x.unit
            return None
        def __enter__(self):
            return self
        def __exit__(self, type, value, tb):
            if self._remove:
                del units.registry[u.Quantity]
    return MplQuantityConverter()

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def quantity_support(format=u'latex_inline'):