def is_mp_obj(obj):
    """
    Helper function to determine if the current object matches the structure
    that the library enforices for MatrixProfiles.

    Parameters
    ----------
    obj : object
        The object to test.
    
    Returns
    -------
    bool :
        True or false respectively.
    """
    return isinstance(obj, dict) and obj.get('class') == 'MatrixProfile'
