code: def test_protect_local_remote(tmp_dir, dvc, local_remote):
      (stage,) = tmp_dir.dvc_gen("file", "file content")
  
      dvc.push()
      odb = dvc.cloud.get_remote_odb("upstream")
      remote_cache_file = odb.oid_to_path(stage.outs[0].hash_info.value)
  
      assert os.path.exists(remote_cache_file)
      assert stat.S_IMODE(os.stat(remote_cache_file).st_mode) == 0o444
  
imports: import errno
  import itertools
  import os
  import stat
  import configobj
  import pytest
  from dvc.cli import main
  from dvc.config import Config
  from dvc.exceptions import DownloadError, UploadError
  from dvc.utils.fs import remove
label_desc: Use image node_id 22 for calling a global function with example usage: test_protect_local_remote(tmp_dir, dvc, local_remote) without return types