<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mime_type(self, path):
 """Get mime-type from filename"""

        name, ext = os.path.splitext(path)
        return MIME_TYPES[ext]