code: def run_benchmark(name):
      command_template = (
          ADB_LOCAL
          + " shell /data/local/tmp/benchmark_model --graph=/data/local/tmp/"
      )
      command = command_template + name + ".tflite --num_threads=4"
      process2 = subprocess.Popen(
          command.split(), stdout=subprocess.PIPE
      )
      output, error = process2.communicate()
      output = output.decode("utf-8")
      output = output.split("\n")
      infer, memo = "", ""
      for p in output:
          if "Inference timings" in p:
              infer = p
          if "Peak memory footprint" in p:
              memo = p
      # output = output.split("\n")
      # infer = output
      return (infer, memo)
  
file_path: auptimizer/Examples/converter_examples/Convert_Benchmark/script_mobilenet.py
imports: import keras
  import subprocess
  from os import path
  import pandas
  import json
label_desc: Use image node_id 3 for calling a global function with example usage: run_benchmark(name) and returns: infer,  memo