code: def _prepare_message(stage, changes):
      changed_deps, changed_outs, changed_stage = changes
      if changed_deps and changed_outs:
          msg = "dependencies {deps} and outputs {outs} of {stage} changed."
      elif changed_deps:
          msg = "dependencies {deps} of {stage} changed."
      elif changed_outs:
          msg = "outputs {outs} of {stage} changed."
      else:
          msg = "{stage_changed}"
  
      msg += " Are you sure you want to commit it?"
  
      kw = {
          "stage": stage,
          "deps": changed_deps,
          "outs": changed_outs,
          "stage_changed": changed_stage,
      }
      return msg.format_map(kw)
  
file_path: dvc/dvc/repo/commit.py
imports: from typing import TYPE_CHECKING, Set
  from dvc import prompt
  from .None import locked
  from .scm_context import scm_context
label_desc: Use image node_id 1 for calling a global function with example usage: _prepare_message(stage, changes) and returns: msg