code: def _safe_re_match(ext, pattern):
      try:
          p = re.compile(pattern)
      except ValueError:
          return False
      else:
          return p.search(ext)
  
imports: import logging
  import os
  import re
  import subprocess
  from guild import cli
  from guild import click_util
  from guild import cmd_impl_support
  from guild import config
  from guild import run_util
  from guild import util
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 20 for calling a global function with example usage: _safe_re_match(ext, pattern) and returns: p, False