def fig(fig):
    """
    Check if fig is an instance of *Figure*.

    :raises TypeError: fig must be an instance of *Figure*.
    """
    if not fig.__class__.__name__ == 'Figure':
        raise TypeError('\n\nfig must be an instance of *Figure*.\n')
