def METHOD_NAME(value, num_spaces=4):
    """
    Adds ``num_spaces`` spaces at the
    beginning of every line in value.
    """
    return ' ' * num_spaces + value.replace('\n', '\n' + ' ' * num_spaces)