code: def setMaximumThickness(self, val):
      # calls main class methods
      Thickness = "Height" if self.horizontal else "Width"
      getattr(self, f"setMaximum{Thickness}")(val)
  
imports: import importlib.util
  import re
  import numpy
  from ..None import colormap
  from ..None import functions
  from ..graphicsItems.GradientPresets import Gradients
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 2 for calling the ColorMapDisplayMixin obj's underlying member method code with example usage: obj.setMaximumThickness(val) without return types