def METHOD_NAME():
    """ephys.parameterscalers: Test iexpr generation from python expression"""
    value = 2.125
    value_scaler = ephys.parameterscalers.NrnSegmentSomaDistanceScaler(
        name='soma_distance_scaler',
        distribution='(0.62109375 - math.log( math.pi ) * math.exp('
                     '({distance}) / 0.421875)) * {value}')
    iexpr = value_scaler.acc_scale_iexpr(
        value=value, constant_formatter=lambda v: '%.9g' % v)
    assert iexpr == '(sub (scalar 0.62109375) ' \
                    '(mul (log (pi) ) ' \
                    '(exp (div (distance (region "soma")) ' \
                    '(scalar 0.421875) ) ) ) )'