[docs]defto_units(units:Union[pint.Unit,UnitGenerator])->Callable[[Any],pint.Quantity]:""" Create a callable ``f(x)`` returning :func:`ensure_units(x, units, convert=False) <ensure_units>`. :param units: Units to ensure conversion to. """deff(x):returnensure_units(x,units)returnf