def _escape(input_string: str) -> str:
    '\n    Adopted from https://github.com/titan550/bcpy/blob/master/bcpy/format_file_builder.py#L25\n    '
    return input_string.replace('"', '\\"').replace("'", "\\'").replace('\r', '\\r').replace('\n', '\\n')
Adopted from https://github.com/titan550/bcpy/blob/master/bcpy/format_file_builder.py#L25
def _escape(input_string: str) -> str:
    '\n    \n    '
    return input_string.replace('"', '\\"').replace("'", "\\'").replace('\r', '\\r').replace('\n', '\\n')