code: def get_path_from_query_string(req):
      """Gets path from query string
  
      Args:
          req (flask.request): Request object from Flask
  
      Returns:
          path (str): Value of "path" parameter from query string
  
      Raises:
          exceptions.UserError: If "path" is not found in query string
      """
      if req.args.get("path") is None:
          raise exceptions.UserError("Path not found in query string")
      return req.args.get("path")
  
imports: from __future__ import absolute_import, print_function, division, unicode_literals
  import imp
  import sys
  import os
  import hashlib
  import json
  import numpy
  from sqlalchemy import create_engine
  from sqlalchemy.orm import Session
  from six import exec_, iteritems
  from sklearn import datasets
  from sklearn import model_selection
  from xcessiv import app, exceptions
label_desc: Use image node_id 11 for calling a global function with example usage: get_path_from_query_string(req) and returns: req