def make_closing(base, **attrs):
    if not hasattr(base, '__enter__'):
        attrs['__enter__'] = lambda self: self
    if not hasattr(base, '__exit__'):
        attrs['__exit__'] = lambda self, type, value, traceback: self.close()
    return type('Closing' + base.__name__, (base, object), attrs)
Scale back the data to the original representation
dataset/ETHPy150Open piskvorky/smart_open/smart_open/smart_open_lib.py/make_closing--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/preprocessing/data.py/StandardScaler.inverse_transform