<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def team_scores(self, team_scores, time, show_datetime, use_12_hour_format):
 """Prints the teams scores in a pretty format"""

        for score in team_scores["matches"]:
            if score["status"] == "FINISHED":
                click.secho("%s\t" % score["utcDate"].split('T')[0],
                            fg=self.colors.TIME, nl=False)
                self.scores(self.parse_result(score))
            elif show_datetime:
                self.scores(self.parse_result(score), add_new_line=False)
                click.secho('   %s' % Stdout.utc_to_local(score["utcDate"],
                                                          use_12_hour_format,
                                                          show_datetime),
                            fg=self.colors.TIME)