code: def get_record_value(request, uid, keyword, default=None):
      
      value = request.get(keyword)
      if not value:
          return default
      if not isinstance(value, list):
          return default
      return value[0].get(uid, default) or default
docs: Returns the value for the keyword and uid from the request