code: def _runs_data(req, data):
      try:
          run_id_prefix = req.args["run"]
      except KeyError:
          return data.runs_data()
      else:
          data = data.one_run_data(run_id_prefix)
          if not data:
              raise NotFound()
          return [data]
  
imports: import json
  import logging
  import math
  import os
  import socket
  import subprocess
  import sys
  import threading
  import time
  from werkzeug.exceptions import NotFound
  from werkzeug.utils import redirect
  from guild import serving_util
  from guild import util
  from guild import var
label_desc: Use image node_id 10 for calling a global function with example usage: _runs_data(req, data) and returns: list, data