<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def re_line_and_indentation(base_indentation, modifiers=(True, True)):
 """Returns a re matching newline + base_indentation. modifiers is a tuple, (include_first, include_final). If include_first, matches indentation at the beginning of the string. If include_final, matches indentation at the end of the string. Cached. """

    cache = re_line_and_indentation.cache[modifiers]
    compiled = cache.get(base_indentation, None)
    if compiled is None:
        [prefix, suffix] = re_line_and_indentation.tuple[modifiers]
        compiled = cache[modifiers] = \
            _re.compile(prefix + base_indentation + suffix)
    return compiled