<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _get_proc_name(proc):
    '''
    Returns the name of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
    '''
    try:
        return salt.utils.data.decode(proc.name() if PSUTIL2 else proc.name)
    except (psutil.NoSuchProcess, psutil.AccessDenied):
        return []