code: def test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote):
      random.seed(4231)
      # Move some files to create a partial dataset
      os.makedirs("partial-copy")
      for f in glob.glob("*", root_dir=dataset, recursive=True):  # type: ignore[call-arg]
          if random.random() > 0.5:  # noqa: S311
              shutil.move(dataset / f, tmp_dir / "partial-copy" / f)
  
      # Add/push partial dataset
      bench_dvc("add", dataset)
      bench_dvc("push")
  
      # Add more files to the dataset
      shutil.copytree("partial-copy", dataset, dirs_exist_ok=True)
  
      # Benchmark operations for adding files to a dataset
      bench_dvc("add", dataset, name="partial")
      bench_dvc("push", name="partial")
      bench_dvc("gc", "-f", "-w", name="noop")
      bench_dvc("gc", "-f", "-w", "-c", name="cloud-noop")
  
file_path: dvc/dvc/testing/benchmarks/cli/stories/test_modify_data.py
imports: import glob
  import os
  import random
  import shutil
  import sys
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote) without return types