code: def test_gc_without_workspace(tmp_dir, dvc, caplog, cloud):
      with caplog.at_level(logging.WARNING, logger="dvc"):
          assert main(["gc", f"-{cloud}vf"]) == 255
  
      assert (
          "Either of `-w|--workspace`, `-a|--all-branches`, `-T|--all-tags` "
          "`--all-experiments`, `--all-commits`, `--date` or `--rev` "
          "needs to be set." in caplog.text
      )
  
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 13 for calling a global function with example usage: test_gc_without_workspace(tmp_dir, dvc, caplog, cloud) without return types