def METHOD_NAME(self, job: Job):
    results = ParallelPerfResult()  # container for multiple instances of pktgen
    for _, raw_results in job.result.items():
        instance_results = SequentialPerfResult()  # instance (device) of pktgen
        for raw_result in raw_results:
            sample = PerfInterval(
                raw_result["packets"],
                raw_result["duration"],
                "packets",
                raw_result["timestamp"],
            )
            instance_results.append(sample)
        results.append(instance_results)
    return results