code: def cmd_cuts(self, lo=None, hi=None, ch=None):
          
          viewer = self.get_viewer(ch)
          if viewer is None:
              self.log("No current viewer/channel.")
              return
  
          loval, hival = viewer.get_cut_levels()
  
          if (lo is None) and (hi is None):
              self.log("lo=%f hi=%f" % (loval, hival))
  
          else:
              if lo is not None:
                  loval = lo
              if hi is not None:
                  hival = hi
              viewer.cut_levels(loval, hival)
  
              self.log("lo=%f hi=%f" % (loval, hival))
docs: cuts lo=val hi=val ch=chname
  
          If neither `lo` nor `hi` is provided, returns the current cut levels.
          Otherwise sets the corresponding cut level for the given channel.
          If `ch` is omitted, assumes the current channel.