code: def stages(tmp_dir, run_copy):
      stage1, stage2 = tmp_dir.dvc_gen({"foo": "foo", "lorem": "lorem"})
      return {
          "foo-generate": stage1,
          "lorem-generate": stage2,
          "copy-foo-bar": run_copy("foo", "bar", name="copy-foo-bar"),
          "copy-bar-foobar": run_copy(
              "bar", "foobar", name="copy-bar-foobar"
          ),
          "copy-lorem-ipsum": run_copy(
              "lorem", "ipsum", name="copy-lorem-ipsum"
          ),
      }
  
imports: import os
  from operator import itemgetter
  import pytest
  from funcy import raiser
  from dvc.dvcfile import PROJECT_FILE, FileIsGitIgnored
  from dvc.exceptions import NoOutputOrStageError
  from dvc.repo import Repo
  from dvc.stage.exceptions import StageFileDoesNotExistError, StageNameUnspecified, StageNotFound
  from dvc.utils import relpath
  from dvc.utils.fs import remove
  from dvc.utils.strictyaml import YAMLValidationError
label_desc: Use image node_id 5 for calling a global function with example usage: stages(tmp_dir, run_copy) and returns: dict