def get_conversation_style(player_name: str,
                           rng: random.Random | None = None) -> str:
  """Get a random conversation style from a preset list of styles.

  Args:
    player_name: name of the player who will be said to have the sampled style
      of conversation.
    rng: a random number generator.

  Returns:
    style: a string
  """
  if rng is None:
    rng = random.Random()
  return rng.choice(CONVERSATION_STYLES).format(player_name=player_name)
Get a random conversation style from a preset list of styles.

  Args:
    player_name: name of the player who will be said to have the sampled style
      of conversation.
    rng: a random number generator.

  Returns:
    style: a string
  
examples/deprecated/modular/environment/modules/player_traits_and_styles.py