code: def _strip_leading_zeros(coeffs, threshold=_COEFFICIENT_THRESHOLD):
      r
      while np.abs(coeffs[-1]) < threshold:
          coeffs = coeffs[:-1]
      return coeffs
docs: r"""Strip leading zero coefficients from a polynomial.
  
      .. note::
  
         This assumes the polynomial :math:`f` defined by ``coeffs``
         has been normalized (via :func:`.normalize_polynomial`).
  
      Args:
          coeffs (numpy.ndarray): ``d + 1``-array of coefficients in monomial /
              power basis.
          threshold (Optional[float]): The point :math:`\tau` below which a
              a coefficient will be considered to be numerically zero.
  
      Returns:
          numpy.ndarray: The same coefficients without any unnecessary zero
          terms.