def _exp_warn_msg(cls):
    """Generate a warning message experimental features"""
    pfx = cls
    if isinstance(cls, type):
        pfx = cls.__name__
    msg = ('%s is experimental -- it may be removed in the future and '
           'is not guaranteed to maintain backward compatibility') % pfx
    return msg