code: def get_variables():
      
      assert request.method == "POST", "POST request expected received {}".format(request.method)
      if request.method == "POST":
          try:
              selected_run = request.form["selected_run"]
              variables = utils.get_variables(selected_run)
  
              # Reset current_index when you select a new run
              variable_names = variables.items()
              global current_index
              current_index = {}
              if len(current_index) < 1:
                  for _, v_n in variable_names:
                      current_index["{}".format(v_n)] = 0
  
              return jsonify(variables)
          except Exception as e:
              logging.error(e)
      return jsonify({"0": "__EMPTY"})
docs: Send a dictionary of variables associated with the selected run.
  
      Usage description:
      This function is usually called to get and display the list of runs associated with a selected project available
      in the database for the user to view.
  
      :return: JSON, {<int_keys>: <run_name>}