def temp_to_orig_section(temp_sec):
    """
    Change a temp section into its original.
    If it is its original it will return what was given.
    :param temp_sec: temporary section created by 'create_temp_batch'
    :return: orig section
    """
    section = temp_sec
    if temp_sec.startswith(('1', '2', '3', '4', '5', '6', '7', '8', '9')) and '~|~' in temp_sec:
        # This is a temp section
        section = temp_sec.split('~|~', 1)[1]
    return section