def codeblock(block_str):
import textwrap  <EOL>return textwrap.dedent(block_str).strip('<STR_LIT:\n>')<EOL>
Wraps multiline string blocks and returns unindented code.
Useful for templated code defined in indented parts of code.

Args:
    block_str (str): typically in the form of a multiline string

Returns:
    str: the unindented string

CommandLine:
    python -m ubelt.util_str codeblock

Example:
    >>> from ubelt.util_str import *  # NOQA
    >>> # Simulate an indented part of code
    >>> if True:
    >>>     # notice the indentation on this will be normal
    >>>     codeblock_version = codeblock(
    ...             '''
    ...             def foo():
    ...                 return 'bar'
    ...             '''
    ...         )
    >>>     # notice the indentation and newlines on this will be odd
    >>>     normal_version = ('''
    ...         def foo():
    ...             return 'bar'
    ...     ''')
    >>> assert normal_version != codeblock_version
    >>> print('Without codeblock')
    >>> print(normal_version)
    >>> print('With codeblock')
    >>> print(codeblock_version)