def METHOD_NAME(x, uniform):
    loc = uniform.get_parameters()['loc']  # loc = lower bound of uniform distribution
    scale = uniform.get_parameters()['scale']
    upper = loc + scale  # upper bound = loc + scale
    return (2 * x - loc - upper) / (upper - loc)