def METHOD_NAME(self, mime):
    if mime not in self.data:
        return
    data = self.data[mime]
    if mime in self.metadata:
        return data, self.metadata[mime]
    else:
        return data