code: def _config_diff_cmd_for_path(path, cmd_map):
      _root, path_ext = os.path.splitext(path)
      for pattern in cmd_map:
          if pattern == "default":
              continue
          if _match_ext(path_ext, pattern):
              return cmd_map[pattern]
      return cmd_map.get("default")
  
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 18 for calling a global function with example usage: _config_diff_cmd_for_path(path, cmd_map) and returns: cmd_map, cmd_map