def standardize_tabletype(tabletype):
    """
    Given the user defined type of table it returns the proper 'tabletype' expected by the pipeline

    Args:
        tabletype, str. Allows for a flexible number of input options, but should refer to either the 'exposure',
                         'processing', or 'unprocessed' table types.

    Returns:
         tabletype, str. Standardized tabletype values. Either "exptable", "proctable", "unproctable".
    """
    if tabletype.lower() in ['exp', 'exposure', 'etable', 'exptable', 'exptab', 'exposuretable', 'exposure_table']:
        tabletype = 'exptable'
    elif tabletype.lower() in ['proc', 'processing', 'proctable', 'proctab', 'int', 'ptable', 'internal']:
        tabletype = 'proctable'
    elif tabletype.lower() in ['unproc', 'unproctable', 'unproctab', 'unprocessed', 'unprocessing', 'unproc_table']:
        tabletype = 'unproctable'
    return tabletype