# Buggy code
def _bw_style():
    style = {
        "BLACK": "0;30",
        "BLUE": "0;37",
        "CYAN": "0;37",
        "GREEN": "0;37",
        "INTENSE_BLACK": "0;90",
        "INTENSE_BLUE": "0;97",
        "INTENSE_CYAN": "0;97",
        "INTENSE_GREEN": "0;97",
        "INTENSE_PURPLE": "0;97",
        "INTENSE_RED": "0;97",
        "INTENSE_WHITE": "0;97",
        "INTENSE_YELLOW": "0;97",
        "NO_COLOR": "0",
        "PURPLE": "0;37",
        "RED": "0;37",
        "WHITE": "0;37",
        "YELLOW": "0;37",
    }
    return style


# Traceback (ValueError)
Traceback (most recent call last):
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/proc.py"
, line 1856, in __init__
proc = spec.run(pipeline_group=pipeline_group)
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/built_in
s.py", line 541, in run
self.prep_env(kwargs)
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/built_in
s.py", line 576, in prep_env
denv = builtins.__xonsh__.env.detype()
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/environ.
py", line 1364, in detype
deval = ensurer.detype(val)
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/tools.py
", line 1095, in detype
return x.detype()
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/environ.
py", line 373, in detype
for key, val in sorted(self._d.items())
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/environ.
py", line 373, in <listcomp>
for key, val in sorted(self._d.items())
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/environ.
py", line 371, in <listcomp>
[ansi_color_name_to_escape_code(v, cmap=style) for v in val]
File "/nix/store/gazjvyirnxpqkz5rgvv7krcs3i90lbl4-xonsh-0.9.3/lib/python3.7/site-packages/xonsh/ansi_col
ors.py", line 82, in ansi_color_name_to_escape_code
raise ValueError(msg.format(name, fgcolor, cmap))
ValueError: when converting 'BACKGROUND_BLACK', did not recognize '0;30' within the following color map as
a valid color:

{'BLACK': '0;30', 'BLUE': '0;37', 'CYAN': '0;37', 'GREEN': '0;37', 'INTENSE_BLACK': '0;90', 'INTENSE_BLUE'
: '0;97', 'INTENSE_CYAN': '0;97', 'INTENSE_GREEN': '0;97', 'INTENSE_PURPLE': '0;97', 'INTENSE_RED': '0;97'
, 'INTENSE_WHITE': '0;97', 'INTENSE_YELLOW': '0;97', 'NO_COLOR': '0', 'PURPLE': '0;37', 'RED': '0;37', 'WH
ITE': '0;37', 'YELLOW': '0;37', 'BOLD_RED': '1;0;37', 'BOLD_PURPLE': '1;0;37'}

# Fixed code
def _bw_style():
    style = {
        "NO_COLOR": "0",
        "BLACK": "0;30",
        "BLUE": "0;37",
        "CYAN": "0;37",
        "GREEN": "0;37",
        "PURPLE": "0;37",
        "RED": "0;37",
        "WHITE": "0;37",
        "YELLOW": "0;37",
        "BACKGROUND_BLACK": "40",
        "BACKGROUND_RED": "47",
        "BACKGROUND_GREEN": "47",
        "BACKGROUND_YELLOW": "47",
        "BACKGROUND_BLUE": "47",
        "BACKGROUND_PURPLE": "47",
        "BACKGROUND_CYAN": "47",
        "BACKGROUND_WHITE": "47",
        "INTENSE_BLACK": "0;90",
        "INTENSE_BLUE": "0;97",
        "INTENSE_CYAN": "0;97",
        "INTENSE_GREEN": "0;97",
        "INTENSE_PURPLE": "0;97",
        "INTENSE_RED": "0;97",
        "INTENSE_WHITE": "0;97",
        "INTENSE_YELLOW": "0;97",
    }
    return style