<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def context_include(zap_helper, name, pattern):
 """Include a pattern in a given context."""

    console.info('Including regex {0} in context with name: {1}'.format(pattern, name))
    with zap_error_handler():
        result = zap_helper.zap.context.include_in_context(contextname=name, regex=pattern)

        if result != 'OK':
            raise ZAPError('Including regex from context failed: {}'.format(result))