code: def match_msg(filter_str, msg):
      match = False
      try:
          if re.match(filter_str, msg):
              match = True
      except Exception:
          pass
      return match
  
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 2 for calling the LogFilter obj's underlying member method code with example usage: obj.match_msg(filter_str, msg) and returns: match