from typing import Callable


def preprocess_inceptionv1() -> Callable:
    """Returns preprocessing function to prepare input for original Tensorflow's InceptionV1 model.

    InceptionV1 takes in values from [-117, 138] so the preprocessing function takes in values from 0-1
    and maps them to [-117, 138]

    See https://github.com/tensorflow/lucid/blob/master/lucid/modelzoo/other_models/InceptionV1.py#L56 for details.
    Thanks to ProGamerGov for this!

    :return: Preprocessing function
    :rtype: Callable
    """
    return lambda x: x * 255 - 117