code: def filter(self, record):
      allow = True
      if isinstance(self.param, str):
          allow = not self.match_msg(self.param, record.msg)
      elif isinstance(self.param, list):
          allow = not any(
              self.match_msg(p, record.msg) for p in self.param
          )
      return allow
  
imports: import logging
  from typing import Optional, Text, Dict, Any
  import re
  from logging import config
  from time import time
  from contextlib import contextmanager
  from .config import C
label_desc: Use image node_id 3 for calling the LogFilter obj's underlying member method code with example usage: obj.filter(record) and returns: allow