def viscode_to_session(viscode):
    """

        Replace the session label 'bl' with 'M00' or capitalize the session
        name passed as input.

        :param viscode: session name

        :return: M00 if is the baseline session or the original session name
        capitalized
    """
    if viscode == 'bl':
        return 'M00'
    else:
        return viscode.capitalize()