code: def _round_multiple(x:int, mult:int=None)->int:
      "Calc `x` to nearest multiple of `mult`."
      return (int(x/mult+0.5)*mult) if mult is not None else f _round_multiple(x:int, mult:int=None)->int:
      "Calc `x` to nearest multiple of `mult`."
      return (int(x/mult+0.5)*mult) if mult is not None else x
docs: Calc `x` to nearest multiple of `mult`.