def mapper_fn(x: Any) -> Any:
    if (x in mapper_dict):
        return mapper_dict[x]
    else:
        if (errors == 'raise'):
            raise KeyError('Index include value which is not in the `mapper`')
        return x
def mapper_fn(x: Any) -> Any:
    if (x in mapper_dict):
        return mapper_dict[x]
    else:
        if (errors == 'raise'):
            raise KeyError('Index include value which is not in the `mapper`')
        return x