def _params_to_errors(h, delta_h, l_skewness_and_kurtosis):
  """Maps parameters to errors on L-skewness and L-kurtosis.

  Args:
    h: Value of right parameter of the Tukey HH distribution.
    delta_h: Different between right and left parameter of the Tukey HH
      distribution.
    l_skewness_and_kurtosis: np.array containing the target values of
      L-skewness and L-kurtosis.

  Returns:
    An np.array containing the difference between the values of L-skewness and
    L-kurtosis corresponding to the parameters hl = h - delta_h, hr =h and the
    target values.
  """
  dtype = l_skewness_and_kurtosis.dtype
  h_params = np.array([h - delta_h, h], dtype=dtype)
  current_l_skewness_and_kurtosis = np.array(
      _tukey_hh_l_skewness_and_kurtosis(h_params), dtype=dtype)
  return current_l_skewness_and_kurtosis - l_skewness_and_kurtosis
Maps parameters to errors on L-skewness and L-kurtosis.

  Args:
    h: Value of right parameter of the Tukey HH distribution.
    delta_h: Different between right and left parameter of the Tukey HH
      distribution.
    l_skewness_and_kurtosis: np.array containing the target values of
      L-skewness and L-kurtosis.

  Returns:
    An np.array containing the difference between the values of L-skewness and
    L-kurtosis corresponding to the parameters hl = h - delta_h, hr =h and the
    target values.
  
tensorflow_transform/gaussianization.py