<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _indent(text, amount):
 """Indent a multiline string by some number of spaces. Parameters text: str The text to be indented amount: int The number of spaces to indent the text Returns ------- indented_text """

    indentation = amount * ' '
    return indentation + ('\n' + indentation).join(text.split('\n'))