code: def silence(cls, *modules, **kwargs):
          
          level = kwargs.pop("level", logging.WARNING)
          for mod in modules:
              name = mod.__name__ if hasattr(mod, "__name__") else mod
              logging.getLogger(name).setLevel(level)
docs: Args:
              *modules: Modules, or names of modules to silence (by setting their log level to WARNING or above)
              **kwargs: Pass as kwargs due to python 2.7, would be level=logging.WARNING otherwise