def _show_warning(message, category, filename, lineno, file=None, line=None):
    if file is None:
        file = sys.stderr
    try:
        file.write(formatwarning(message, category, filename, lineno, line))
    except IOError:
        pass # the file (probably stderr) is invalid - this warning gets lost.
# Keep a working version around in case the deprecation of the old API is
# triggered.
Hook to write a warning to a file; replace if you like.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/warnings.py/_show_warning