code: def logging_from_debugplot(debugplot):
      
  
      if isinstance(debugplot, int):
          if abs(debugplot) >= 10:
              logging.basicConfig(level=logging.DEBUG)
          else:
              logging.basicConfig(level=logging.INFO)
      else:
          raise ValueError("Unexpected debugplot=" + str(debugplot))
docs: Set debugging level based on debugplot value.
  
      Parameters
      ----------
      debugplot : int
              Debugging level for messages and plots. For details see
              'numina.array.display.pause_debugplot.py'.