code: def remove_overused_persona(
      personas: List[str],
      persona_use_count: Dict[str, int],
      max_persona_use: int,
  ):
      """
      Removes personas that were used too often from the list of personas.
      """
      if not max_persona_use or not persona_use_count:
          return personas
      cleaned_personas = []
      for p in personas:
          if persona_use_count[p.lower()] < max_persona_use:
              cleaned_personas.append(p)
      logging.info(
          f"{len(cleaned_personas)} out of {len(personas)} personas accepted for use, "
          f"based on use count being less than maximum allowed of {max_persona_use}"
      )
      return cleaned_personas
  
imports: import random
  import os
  from collections import defaultdict
  import hydra
  from omegaconf import DictConfig
  from dataclasses import dataclass, field
  from typing import List, Dict, Any
  from parlai.crowdsourcing.projects.wizard_of_internet import constants
  from parlai.crowdsourcing.projects.wizard_of_internet.wizard_internet_blueprint import WIZARD_INTERNET_PARLAICHAT_BLUEPRINT
  from parlai.crowdsourcing.utils.mturk import MTurkRunScriptConfig
  import parlai.utils.logging
  from mephisto.abstractions.databases.local_database import LocalMephistoDB
  from mephisto.abstractions.blueprints.parlai_chat.parlai_chat_blueprint import SharedParlAITaskState
  from mephisto.operations.operator import Operator
  from mephisto.operations.hydra_config import register_script_config
  from mephisto.tools.scripts import load_db_and_process_config
label_desc: Use image node_id 4 for calling a global function with example usage: remove_overused_persona(personas, persona_use_count, max_persona_use) and returns: cleaned_personas, personas