class_docstr: A Logfile class with different policies for file creation
class_docstr_tok: ["A","Logfile","class","with","different","policies","for","file","creation"]
code: def _set_mode(self, mode):
      if mode not in ["append", "backup", "global", "over", "rotate"]:
          raise ValueError("invalid log mode %s given" % mode)
      self._logmode = mode
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/logger.py
imports: import glob
  import io
  import logging
  import os
  import time
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj._set_mode(mode) without return types