code: def get_team_scores(self, team, time, show_upcoming, use_12_hour_format):
          
          team_id = self.team_names.get(team, None)
          time_frame = 'n' if show_upcoming else 'p'
          if team_id:
              try:
                  req = self._get('teams/{team_id}/matches?timeFrame={time_frame}{time}'.format(
                              team_id=team_id, time_frame=time_frame, time=time))
                  team_scores = req.json()
                  if len(team_scores["matches"]) == 0:
                      click.secho("No action during past week. Change the time "
                                  "parameter to get more fixtures.", fg="red", bold=True)
                  else:
                      self.writer.team_scores(team_scores, time, show_upcoming, use_12_hour_format)
              except APIErrorException as e:
                  click.secho(e.args[0],
                              fg="red", bold=True)
          else:
              click.secho("Team code is not correct.",
                          fg="red", bold=True)
docs: Queries the API and gets the particular team scores