code: def test_push_pull_unsupported(tmp_dir, dvc, mocker, run_copy):
      tmp_dir.gen("foo", "foo")
      run_copy("foo", "bar", name="copy-foo-bar")
      mocker.patch.object(
          dvc.cloud,
          "get_remote_odb",
          side_effect=RunCacheNotSupported("foo"),
      )
      with pytest.raises(RunCacheNotSupported):
          dvc.push(run_cache=True)
      with pytest.raises(RunCacheNotSupported):
          dvc.pull(run_cache=True)
  
file_path: dvc/tests/func/test_run_cache.py
imports: import os
  import pytest
  from funcy import first
  from dvc.dvcfile import LOCK_FILE
  from dvc.stage.cache import RunCacheNotSupported, _get_stage_hash
  from dvc.utils.fs import remove
label_desc: Use image node_id 11 for calling a global function with example usage: test_push_pull_unsupported(tmp_dir, dvc, mocker, run_copy) without return types