def METHOD_NAME(value, sampling_type: str):
    if isinstance(value, (tuple, list)):
        if sampling_type == "fixed":
            return value
        elif sampling_type == "choice":
            return random.choice(value)
        elif sampling_type == "exponent":
            exponent = random.uniform(*value)
            return 10**-exponent
        elif sampling_type == "randint":
            return random.randint(*value)
        elif sampling_type == "uniform":
            return random.uniform(*value)
        else:
            raise NotImplementedError(
                f"Sampling type {sampling_type} is not implemented"
            )
    else:
        if sampling_type == "exponent":
            return 10**-value
        else:
            return value