code: def fmt_log_record(log_record):
      return {
          "log_from": "mindsdb",
          "level": log_record.log_type,
          "context": "unkown",
          "text": log_record.payload,
          "created_at": str(log_record.created_at).split(".")[0],
      }
  
imports: from mindsdb.interfaces.storage import db
  from mindsdb.utilities.context import context
label_desc: Use image node_id 1 for calling a global function with example usage: fmt_log_record(log_record) and returns: dict