def METHOD_NAME(
    value: Any, distribution: BaseDistribution
) -> Tuple[Any, BaseDistribution]:
    if isinstance(distribution, (IntDistribution, FloatDistribution)):
        if _is_distribution_log(distribution):
            value = np.log(value)
            low = np.log(distribution.low)
            high = np.log(distribution.high)
            distribution = FloatDistribution(low=low, high=high)
            return value, distribution
    return value, distribution