code: def test_snapshot_auto_capture_no_active_conda_env(
      no_conda_env_prefix, no_conda_env_name
  ):
      with pytest.raises(ValueError):
          RuntimeEnvironmentManager().snapshot("auto_capture")
  
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 10 for calling a global function with example usage: test_snapshot_auto_capture_no_active_conda_env(no_conda_env_prefix, no_conda_env_name) without return types