<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raise_os_error(_errno, path=None):
 """ Helper for raising the correct exception under Python 3 while still being able to raise the same common exception class in Python 2.7. """


    msg = "%s: '%s'" % (strerror(_errno), path) if path else strerror(_errno)
    raise OSError(_errno, msg)