code: def cut_levels(self, loval, hival, no_reset=False):
          
          self.t_.set(cuts=(loval, hival))
  
          # If user specified "override" or "once" for auto levels,
          # then turn off auto levels now that they have set the levels
          # manually
          if (not no_reset) and (self.t_['autocuts'] in ('once', 'override')):
              self.t_.set(autocuts='off')
docs: Apply cut levels on the image view.
  
          Parameters
          ----------
          loval, hival : float
              Low and high values of the cut levels, respectively.
  
          no_reset : bool
              Do not reset ``autocuts`` setting.