code: def failed_exp_stage(tmp_dir, scm, dvc, copy_script):
      tmp_dir.gen("params.yaml", "foo: 1")
      stage = dvc.stage.add(
          cmd="python -c 'import sys; sys.exit(1)'",
          metrics_no_cache=["failed-metrics.yaml"],
          params=["foo"],
          name="failed-copy-file",
          deps=["copy.py"],
      )
      scm.add(
          [
              "dvc.yaml",
              "dvc.lock",
              "copy.py",
              "params.yaml",
              "failed-metrics.yaml",
              ".gitignore",
          ]
      )
      scm.commit("init")
      return stage
  
file_path: dvc/tests/unit/repo/experiments/conftest.py
imports: from functools import partial
  import pytest
  from dvc_task.app import FSApp
label_desc: Use image node_id 2 for calling a global function with example usage: failed_exp_stage(tmp_dir, scm, dvc, copy_script) and returns: stage