<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_feature(self, cat, img, feature, data):
 """Saves a new feature."""

        filename = self.path(cat, img, feature)
        mkdir(filename)
        savemat(filename, {'output':data})