@public<EOL>def debug_lvl_from_env():
debug_lvl = os.environ.get('<STR_LIT>')<EOL>if not debug_lvl:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>try:<EOL><INDENT>debug_lvl = int(debug_lvl)<EOL><DEDENT>except ValueError:<EOL><INDENT>setup_logging(verbosity=<NUM_LIT:1>)<EOL>raise RuntimeError(<EOL>textwrap.dedent("""<STR_LIT>""".format(debug_lvl=debug_lvl))<EOL>) from None<EOL><DEDENT>
Read and return `DM_SQUARE_DEBUG` env var, if defined.

    Raises
    ------
    RuntimeError
        If DM_SQUARE_DEBUG is not an int convertable value