<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bold(s, *, escape=True):
 r"""Make a string appear bold in LaTeX formatting. bold() wraps a given string in the LaTeX command \textbf{}. Args ---- s : str The string to be formatted. escape: bool If true the bold text will be escaped Returns ------- NoEscape The formatted string. Examples -------- '\\textbf{hello}' \textbf{hello} """


    if escape:
        s = escape_latex(s)

    return NoEscape(r'\textbf{' + s + '}')