code: def resizeEvent(self, e: QtGui.QResizeEvent) -> None:
      if self.orientation == Qt.Vertical:
          self.setFixedWidth(self.sizeHint().width())
      else:
          self.setFixedHeight(self.sizeHint().height())
      super().resizeEvent(e)
  
imports: import sys
  from PyQt5.QtWidgets import QStyleOptionViewItem
  import pandasgui
  import os
  import plotly
  from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtCore import Qt
  from pandasgui.jotly import generate_title
  from pandasgui.store import PandasGuiDataFrameStore
  from pandasgui.widgets.collapsible_panel import CollapsiblePanel
  from pandasgui.widgets.figure_viewer import FigureViewer
  from pandasgui.widgets.func_ui import FuncUi, Schema
  import logging
  from pandasgui import jotly
label_desc: Use image node_id 4 for calling the TypePicker obj's underlying member method code with example usage: obj.resizeEvent(e) without return types