<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def title(self) -> str: """Episode title."""

        for title in self.titles:
            if title.lang == 'ja':
                return title.title
        # In case there's no Japanese title.
        return self.titles[0].title