code: def test_push_pull_invalid_workspace(
      tmp_dir, scm, dvc, git_upstream, exp_stage, local_remote, caplog
  ):
      dvc.experiments.run()
  
      with open("dvc.yaml", mode="a") as f:
          f.write("\ninvalid")
  
      with caplog.at_level(logging.WARNING, logger="dvc"):
          dvc.experiments.push(git_upstream.remote, push_cache=True)
          dvc.experiments.pull(git_upstream.remote, pull_cache=True)
          assert "failed to collect" not in caplog.text
  
file_path: dvc/tests/func/experiments/test_remote.py
imports: import logging
  import pytest
  from funcy import first
  from dvc.repo.experiments.utils import exp_refs_by_rev
label_desc: Use image node_id 16 for calling a global function with example usage: test_push_pull_invalid_workspace(tmp_dir, scm, dvc, git_upstream, exp_stage, local_remote, caplog) without return types