code: def post_messages(
      hf_endpoint: str,
      bot_associated_user_name: Optional[str],
      bot_token: Optional[str],
      parquet_revision: str,
  ) -> Counters:
      """
      Post messages in Hub discussions to notify users.
      """
      if not (bot_associated_user_name and bot_token):
          raise Exception(
              "No bot token or user name provided, skipping posting messages."
          )
  
      return Counters(
          parquet=post_messages_on_parquet_conversion(
              hf_endpoint=hf_endpoint,
              bot_associated_user_name=bot_associated_user_name,
              bot_token=bot_token,
              parquet_revision=parquet_revision,
          )
      )
  
file_path: datasets-server/jobs/cache_maintenance/src/cache_maintenance/discussions.py
imports: import logging
  from time import sleep
  from typing import Literal, Optional, TypedDict
  from urllib import parse
  from huggingface_hub import HfApi
  from huggingface_hub.constants import REPO_TYPE_DATASET
  from libcommon.simple_cache import get_datasets_with_last_updated_kind
label_desc: Use image node_id 1 for calling a global function with example usage: post_messages(hf_endpoint, bot_associated_user_name, bot_token, parquet_revision) and returns: Counters