code: def _get_logs(job_id):
      
      # Avoid SQLAlchemy "Unicode type received non-unicode bind param value"
      # warnings.
      job_id = unicode(job_id)
  
      results = ENGINE.execute(
          LOGS_TABLE.select().where(LOGS_TABLE.c.job_id == job_id)).fetchall()
  
      results = [dict(result) for result in results]
  
      for result in results:
          result.pop("job_id")
  
      return results
docs: Return any logs for the given job_id from the logs table.