def METHOD_NAME():
    """This is a duplicate of function in core/toolboxes."""
    def new_displayhook(string):
        """A replacement for default `sys.displayhook`"""
        if string is not None:
            sys.stdout.write("%r\n" % (string,))
    def new_translator(string):
        """A fake gettext underscore function."""
        return string
    sys.displayhook = new_displayhook
    sys.__displayhook__ = new_displayhook
    import __builtin__
    __builtin__._ = new_translator