def METHOD_NAME():
    import _pytest.compat
    translate_non_printable =  getattr(_pytest.compat, "_translate_non_printable", None)
    if translate_non_printable:
        def _translate_non_printable_patched(s):
            s = translate_non_printable(s)
            s = s.replace(':', '/:')  # pytest testcase not found error and VS TestExplorer FQN parsing
            s = s.replace('.', '_')   # VS TestExplorer FQN parsing
            s = s.replace('\n', '/n') # pytest testcase not found error 
            s = s.replace('\\', '/')  # pytest testcase not found error, fixes cases (actual backslash followed by n)
            s = s.replace('\r', '/r') # pytest testcase not found error
            return s
        _pytest.compat._translate_non_printable = _translate_non_printable_patched
    else:
        print("ERROR: failed to patch pytest, _pytest.compat._translate_non_printable")