<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def import_styles(self, subs, overwrite=True):
 """ Merge in styles from other SSAFile. Arguments: subs (SSAFile):
 Subtitle file imported from. overwrite (bool):
 On name conflict, use style from the other file (default: True). """

        if not isinstance(subs, SSAFile):
            raise TypeError("Must supply an SSAFile.")

        for name, style in subs.styles.items():
            if name not in self.styles or overwrite:
                self.styles[name] = style