code: def test_change_dir_permission_and_dir_not_exist(mock_subprocess_run):
      mock_subprocess_run.side_effect = subprocess.CalledProcessError(
          returncode=1,
          cmd="sudo chmod ...",
          stderr=b"chmod: cannot access ...: No such file or directory",
      )
      with pytest.raises(RuntimeEnvironmentError) as error:
          RuntimeEnvironmentManager().change_dir_permission(
              dirs=["a", "b", "c"], new_permission="777"
          )
      assert (
          "chmod: cannot access ...: No such file or directory"
          in str(error)
      )
  
imports: from __future__ import absolute_import
  import subprocess
  import pytest
  from mock import patch, Mock
  import sys
  import shlex
  import os
  from mock.mock import MagicMock
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentManager, RuntimeEnvironmentError
label_desc: Use image node_id 25 for calling a global function with example usage: test_change_dir_permission_and_dir_not_exist(mock_subprocess_run) without return types