human
Complete this python program:
def _deprecate(name):
assistant
#Here is the Python program you requested.

    """Internal method used to deprecate top-level assertions. Do not use this.
    """
    def _(*args, **kwargs):
        warnings.warn(('unittest.%s    is    deprecated.        Instead    use    the    %r    method    on    unittest.TestCase' % (name, name)), stacklevel=2, category=DeprecationWarning)
        return getattr(_inst, name)(*args, **kwargs)
    return _