'Fallback if common parts are not passed.'

def __call__(self, data, shared_data=None):

    if (shared_data is None):
        shared_data = self.compute_shared(data)
    return self.compute(data, shared_data)
