code: def moderate_message(
      message: str, user: str
  ) -> Tuple[str, str]:  # [flagged_str, blocked_str]
      moderation_response = client.moderations.create(
          input=message, model="text-moderation-latest"
      )
      category_scores = (
          moderation_response.results[0].category_scores or {}
      )
  
      category_score_items = model_dump(category_scores)
  
      blocked_str = ""
      flagged_str = ""
      for category, score in category_score_items.items():
          if score > MODERATION_VALUES_FOR_BLOCKED.get(category, 1.0):
              blocked_str += f"({category}: {score})"
              logger.info(f"blocked {user} {category} {score}")
              break
          if score > MODERATION_VALUES_FOR_FLAGGED.get(category, 1.0):
              flagged_str += f"({category}: {score})"
              logger.info(f"flagged {user} {category} {score}")
      return (flagged_str, blocked_str)
  
imports: from openai._compat import model_dump
  from src.constants import SERVER_TO_MODERATION_CHANNEL, MODERATION_VALUES_FOR_BLOCKED, MODERATION_VALUES_FOR_FLAGGED
  from openai import OpenAI
  from typing import Optional, Tuple
  import discord
  from src.utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: moderate_message(message, user) and returns: flagged_str,  blocked_str