'Called to set the state of a newly created object.
We capture it to replace our place-holder objects, NDArrayWrapper or
NumpyArrayWrapper, by the array we are interested in. We
replace them directly in the stack of pickler.
NDArrayWrapper is used for backward compatibility with joblib <= 0.9.'

def load_build(self):

    Unpickler.load_build(self)
    if isinstance(self.stack[(-1)], (NDArrayWrapper, NumpyArrayWrapper)):
        if (self.np is None):
            raise ImportError("Trying    to    unpickle    an    ndarray,    but    numpy    didn't    import    correctly")
        array_wrapper = self.stack.pop()
        if isinstance(array_wrapper, NDArrayWrapper):
            self.compat_mode = True
        self.stack.append(array_wrapper.read(self))
