code: def _apply_params(dest, params, meta):
      guild_file = guildfile.guildfile_path(dest)
      lines = _read_lines(guild_file)
      if lines is not None:
          log.info("Updating %s", guild_file)
          dir_name = os.path.basename(os.path.abspath(dest))
          new_lines = [
              _replace_param_refs(line, params, meta, dir_name)
              for line in lines
          ]
          _write_lines(new_lines, guild_file)
  
imports: import errno
  import logging
  import os
  from guild import guildfile
  from guild import util
label_desc: Use image node_id 8 for calling a global function with example usage: _apply_params(dest, params, meta) without return types