def dedent_string(s):
s = re.sub(r'<STR_LIT>', '<STR_LIT>', re.sub(r'<STR_LIT>', '<STR_LIT>', s))<EOL>return textwrap.dedent(s)<EOL>
Strip empty lines at the start and end of a string and dedent it.

Empty and whitespace-only lines at the beginning and end of ``s``
are removed. The remaining lines are dedented, i.e. common leading
whitespace is stripped.