code: def set_logging_mode(mode):
      """Set the current logging mode for Ivy.
  
      Possible modes are 'DEBUG', 'INFO', 'WARNING', 'ERROR'.
      """
      assert (
          mode in logging_modes
      ), "Invalid logging mode. Choose from: " + ", ".join(
          logging_modes
      )
  
      # Update the logging level
      logging.getLogger().setLevel(mode)
      logging_mode_stack.append(mode)
  
label_desc: Use image node_id 1 for calling a global function with example usage: set_logging_mode(mode) without return types