class_docstr: Filter log messages with patterns.
class_docstr_tok: ["Filter","log","messages","with","patterns","."]
docstr: Check whether to suppress a logging message.
  
  Parameters
  ----------
  record
      A logging message.
  
  Returns
  -------
  If True, no pattern exists in the message, hence printed out.
  If False, some pattern is in the message, hence filtered out.
docstr_tok: ["Check","whether","to","suppress","a","logging","message",".","Parameters","--","--","--","--","--","record","A","logging","message",".","Returns","--","--","--","-","If","True",",","no","pattern","exists","in","the","message",",","hence","printed","out",".","If","False",",","some","pattern","is","in","the","message",",","hence","filtered","out","."]
code: def filter(self, record):
      """
      Check whether to suppress a logging message.
  
      Parameters
      ----------
      record
          A logging message.
  
      Returns
      -------
      If True, no pattern exists in the message, hence printed out.
      If False, some pattern is in the message, hence filtered out.
      """
      matches = [
          pattern not in record.msg for pattern in self._blacklist
      ]
      return all(matches)
  
file_path: autogluon/multimodal/src/autogluon/multimodal/utils/log.py
imports: import datetime
  import logging
  import os
  from contextlib import contextmanager
  from typing import Dict, List, Optional, Tuple, Union
  import pytz
  import torch
  from autogluon.common.utils.system_info import get_ag_system_info
label_desc: Use image node_id 2 for calling the LogFilter obj's underlying member method code with example usage: obj.filter(record) and returns: all