<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_filename(path):
 """ Print out lipd filename that is being read or written :param str path: all file metadata :return str: filename """


    if os.path.basename(path):
        return os.path.basename(path)
    return path