code: def add_feedback():
      params = request.args
      uid = params.get("uid")
      iid = params.get("iid")
      rating = params.get("rating", 1)
      time = datetime.now(timezone.utc)
      data_fpath = "data/feedback.csv"
  
      if uid is None:
          return "uid is required", 400
  
      if iid is None:
          return "iid is required", 400
  
      os.makedirs(os.path.dirname(data_fpath), exist_ok=True)
  
      with open(data_fpath, "a+", newline="") as write_obj:
          csv_writer = writer(write_obj)
          csv_writer.writerow([uid, iid, rating, time])
          write_obj.close()
  
      data = {
          "message": "Feedback added",
          "data": {
              "uid": uid,
              "iid": iid,
              "rating": rating,
              "time": str(time),
          },
      }
  
      return jsonify(data), 200
  
file_path: cornac/cornac/serving/app.py
imports: import os
  import sys
  import inspect
  from datetime import datetime, timezone
  from csv import writer
  from cornac.data import Dataset, Reader
  from cornac.eval_methods import BaseMethod
  from cornac.metrics import *
label_desc: Use image node_id 7 for calling a global function with example usage: add_feedback() and returns: jsonify,  int, str,  int, str,  int