code: def get_job_results(self, job_resource_name: str) -> List[TrialResult]:
          
          response = self.service.projects().programs().jobs().getResult(
              parent=job_resource_name).execute()
          trial_results = []
          for sweep_result in response['result']['sweepResults']:
              sweep_repetitions = sweep_result['repetitions']
              key_sizes = [(m['key'], len(m['qubits']))
                           for m in sweep_result['measurementKeys']]
              for result in sweep_result['parameterizedResults']:
                  data = base64.standard_b64decode(result['measurementResults'])
                  measurements = unpack_results(data, sweep_repetitions,
                                                key_sizes)
  
                  trial_results.append(TrialResult(
                      params=ParamResolver(
                          result.get('params', {}).get('assignments', {})),
                      repetitions=sweep_repetitions,
                      measurements=measurements))
          return trial_results
docs: Returns the actual results (not metadata) of a completed job.
  
          Params:
              job_resource_name: A string of the form
                  `projects/project_id/programs/program_id/jobs/job_id`.
  
          Returns:
              An iterable over the TrialResult, one per parameter in the
              parameter sweep.