def METHOD_NAME():
    assert strutils.escape_control_characters("one") == "one"
    assert strutils.escape_control_characters("\00ne") == ".ne"
    assert strutils.escape_control_characters("\nne") == "\nne"
    assert strutils.escape_control_characters("\nne", False) == ".ne"
    assert strutils.escape_control_characters("\u2605") == "\u2605"
    assert (
        strutils.escape_control_characters(bytes(bytearray(range(128))).decode())
        == ".........\t\n..\r.................. !\"#$%&'()*+,-./0123456789:;<"
        "=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~."
    )
    assert (
        strutils.escape_control_characters(bytes(bytearray(range(128))).decode(), False)
        == "................................ !\"#$%&'()*+,-./0123456789:;<"
        "=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~."
    )
    with pytest.raises(ValueError):
        strutils.escape_control_characters(b"foo")