def gen_bold(text, alternative=False):
    """Creates a bold text.

    Args:
      text (string): The text to set bolt.
      alternative (bool): If true '_' is used instead of '*'

    Returns:
      string: The bold formatted text.

    """
    if alternative:
        return '__' + text + '__'
    else:
        return '**' + text + '**'
