code: def _run_with_time(self, fn):
      now = time.time()
      try:
          return fn(self.num)
      finally:
          total = time.time() - now
          self.stats.append(TestResult(self, fn, total_time=total))
  
imports: import argparse
  import cProfile
  import gc
  import os
  import pstats
  import re
  import sys
  import time
label_desc: Use image node_id 8 for calling the Profiler obj's underlying member method code with example usage: obj._run_with_time(fn) and returns: fn