code: def run_example(path):
      
      cmd = "{0} {1}".format(sys.executable, path)
      proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      res = proc.communicate()
      if proc.returncode:
          print(res[1].decode())
      return proc.returncode
docs: Returns returncode of example