code: def _make_cmd(executable, cmd):
      if executable is None:
          return cmd
      opts = {"zsh": ["--no-rcs"], "bash": ["--noprofile", "--norc"]}
      name = os.path.basename(executable).lower()
      return [executable, *opts.get(name, []), "-c", cmd]
  
file_path: dvc/dvc/stage/run.py
imports: import os
  import signal
  import subprocess
  import threading
  from dvc.log import logger
  from dvc.utils import fix_env
  from .decorators import unlocked_repo
  from .exceptions import StageCmdFailedError
label_desc: Use image node_id 1 for calling a global function with example usage: _make_cmd(executable, cmd) and returns: list, cmd