def get_context_type(context=None):
    """Check which Base class this is

    Args:
        context (obj, None): Either the Download or Extract class.
            Defaults to None.

    Returns:
        str: either 'downloader' or 'extractor'
    """
    if context is None:
        return None

    try:
        context.download
        context_type = 'downloader'
    except AttributeError:
        context_type = 'extractor'

    return context_type