code: def post_pytest_benchmarks(self, pytest_json):
      machine_info = pytest_json["machine_info"]
      commit_info = pytest_json["commit_info"]
      upload_time = int(time.time())
      messages = []
      for b in pytest_json["benchmarks"]:
          test = b["name"].split("[")[0]
          net_name = b["params"]["net_name"]
          benchmark_name = f"{test}[{net_name}]"
          executor = b["params"]["executor"]
          fuser = b["params"]["fuser"]
          m = self.format_message(
              {
                  "time": upload_time,
                  "benchmark_group": b["group"],
                  "benchmark_name": benchmark_name,
                  "benchmark_executor": executor,
                  "benchmark_fuser": fuser,
                  "benchmark_class": b["fullname"],
                  "benchmark_time": pytest_json["datetime"],
                  "pytorch_commit_id": commit_info["id"],
                  "pytorch_branch": commit_info["branch"],
                  "pytorch_commit_time": commit_info["time"],
                  "pytorch_version": None,
                  "pytorch_git_dirty": commit_info["dirty"],
                  "machine_kernel": machine_info["release"],
                  "machine_processor": machine_info["processor"],
                  "machine_hostname": machine_info["node"],
                  "circle_build_num": os.environ.get(
                      "CIRCLE_BUILD_NUM"
                  ),
                  "circle_project_reponame": os.environ.get(
                      "CIRCLE_PROJECT_REPONAME"
                  ),
                  "stddev": b["stats"]["stddev"],
                  "rounds": b["stats"]["rounds"],
                  "min": b["stats"]["min"],
                  "median": b["stats"]["median"],
                  "max": b["stats"]["max"],
                  "mean": b["stats"]["mean"],
              }
          )
          messages.append(m)
      self.upload(messages)
  
file_path: pytorch/benchmarks/upload_scribe.py
imports: import argparse
  import json
  import os
  import subprocess
  import time
  from collections import defaultdict
  import requests
label_desc: Use image node_id 2 for calling the PytorchBenchmarkUploader obj's underlying member method code with example usage: obj.post_pytest_benchmarks(pytest_json) without return types