from textwrap import dedent


def print_info_msg(info_msg,verbose=True):
    """ Function to print information message to stdout, when verbose 
    is set to True. It does proper "dedentation" that is needed for readability
    of python code.

    Args:
        info_msg : info message to print
        verbose : set to False to silence printing
    Returns:
        True: if message is successfully printed
    """
  
    if verbose == True:
        print(dedent(info_msg))
        return True
    return False