code: def test_gc_cli(dvc, good_and_bad_cache):
      assert main(["gc", "-wf"]) == 0
      odb = dvc.cache.local
      good_cache, bad_cache = good_and_bad_cache
      assert set(odb.all()) == good_cache
  
imports: import datetime
  import logging
  import os
  import shutil
  import textwrap
  import pytest
  from dvc.cli import main
  from dvc.exceptions import CollectCacheError, InvalidArgumentError, RevCollectionError
  from dvc.fs import LocalFileSystem
  from dvc.utils.fs import remove
  from dvc_data.hashfile.db.local import LocalHashFileDB
label_desc: Use image node_id 3 for calling a global function with example usage: test_gc_cli(dvc, good_and_bad_cache) without return types