def b_to_str(b_str):
if is_python2:<EOL><INDENT>return b_str<EOL><DEDENT>return str(b_str, encoding="<STR_LIT:utf8>")<EOL>
Convert a bytes object to a string.

    b_str (bytes): The object to convert.
    RETURNS (unicode): The converted string.