class_docstr: Runtime Environment Manager class to manage runtime environment.
class_docstr_tok: ["Runtime","Environment","Manager","class","to","manage","runtime","environment","."]
docstr: Creates snapshot of the user's environment
  
  If a req.txt or conda.yml file is provided, it verifies their existence and
  returns the local file path
  If ``auto_capture`` is set, this method will take the snapshot of
  user's dependencies installed in the local runtime.
  Current support for ``auto_capture``:
  * conda env, generate a yml file and return it's local path
  
  Args:
      dependencies (str): Local path where dependencies file exists.
  
  Returns:
      file path of the existing or generated dependencies file
code: def snapshot(self, dependencies: str = None) -> str:
      """Creates snapshot of the user's environment
  
      If a req.txt or conda.yml file is provided, it verifies their existence and
      returns the local file path
      If ``auto_capture`` is set, this method will take the snapshot of
      user's dependencies installed in the local runtime.
      Current support for ``auto_capture``:
      * conda env, generate a yml file and return it's local path
  
      Args:
          dependencies (str): Local path where dependencies file exists.
  
      Returns:
          file path of the existing or generated dependencies file
      """
  
      # No additional dependencies specified
      if dependencies is None:
          return None
  
      if dependencies == "auto_capture":
          return self._capture_from_local_runtime()
  
      # Dependencies specified as either req.txt or conda_env.yml
      if (
          dependencies.endswith(".txt")
          or dependencies.endswith(".yml")
          or dependencies.endswith(".yaml")
      ):
          self._is_file_exists(dependencies)
          return dependencies
  
      raise ValueError(
          f'Invalid dependencies provided: "{dependencies}"'
      )
  
imports: from __future__ import absolute_import
  import logging
  import sys
  import shlex
  import os
  import subprocess
  import time
  import dataclasses
  import json
label_desc: Use image node_id 1 for calling the RuntimeEnvironmentManager obj's underlying member method code with example usage: obj.snapshot(dependencies) and returns: None, self, dependencies