def format_args_check(**kwargs):
    """
    Check types of parameters used in `format_arr`.

    """
    if 'depth' in kwargs and not isinstance(kwargs['depth'], int):
        raise ValueError('`depth` must be an integer.')
    if 'indent' in kwargs and not isinstance(kwargs['indent'], str):
        raise ValueError('`indent` must be a string.')
    if 'col_delim' in kwargs and not isinstance(kwargs['col_delim'], str):
        raise ValueError('`col_delim` must be a string.')
    if 'row_delim' in kwargs and not isinstance(kwargs['row_delim'], str):
        raise ValueError('`row_delim` must be a string.')
    if 'dim_delim' in kwargs and not isinstance(kwargs['dim_delim'], str):
        raise ValueError('`dim_delim` must be a string.')
    if 'format_spec' in kwargs and not isinstance(kwargs['format_spec'], (
        str, list)):
        raise ValueError('`format_spec` must be a string or list of strings.')
    if 'assign' in kwargs:
        if not isinstance(kwargs['assign'], str):
            raise ValueError('`assign` must be a string.')
