code: def _match_ext(ext, pattern):
      return ext == pattern or _safe_re_match(ext, pattern)
  
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 19 for calling a global function with example usage: _match_ext(ext, pattern) and returns: unknown