'Check if ``layout_`` was computed, otherwise raise error.'

def _check_generated(self):

    if (not hasattr(self, 'layout_')):
        raise ValueError('WordCloud    has    not    been    calculated,    call    generate    first.')
