code: def run_perf_process(name, size, backend=""):
      if not backend:
          proc = "perf_%s" % name
      else:
          proc = "perf_%s_%s" % (backend, name)
  
      filename = "./perf/" + proc
  
      if not os.path.isfile(filename):
          print("Error: failed to find ", filename, " for running")
          return 0
      try:
          output = subprocess.check_output([filename, str(int(size))])
      except:
          return 0
  
      t = 0
      for line in output.decode("utf8").split("\n"):
          if line.startswith("time:"):
              t = float(line.split(":")[1].split()[0])
  
      return t
  
file_path: turicreate/src/external/boost/boost_1_68_0/libs/compute/perf/perf.py
imports: import os
  import sys
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: run_perf_process(name, size, backend) and returns: t, int, int