human
Complete the below
def _check_frozen(method, indent=u''):

    ''''Given a method function, return a new method function that first
    checks if ``self._frozen`` is true.
and if so, raises ``ValueError``
    with an appropriate message.  Otherwise, call the method and return
    its result.'
    '''
assistant
#Here is the Python code you requested.
    def wrapped(self, *args, **kwargs):
        if self._frozen:
            raise ValueError(_FROZEN_ERROR)
        else:
            return method(self, *args, **kwargs)
    wrapped.__name__ = method.__name__
    wrapped.__doc__ = ((method.__doc__ or u'') + (_FROZEN_NOTICE % indent))
    return wrapped