code: def get_conda_root():
      
      try:
          # Fast-path
          # We're in the root environment
          conda_root = _import_conda_root()
      except ImportError:
          # We're not in the root environment.
          envs_dir = dirname(CONDA_PREFIX)
          if basename(envs_dir) == 'envs':
              # We're in a named environment: `conda create -n <name>`
              conda_root = dirname(envs_dir)
          else:
              # We're in an isolated environment: `conda create -p <path>`
              # The only way we can find out is by calling conda.
              conda_root = _conda_root_from_conda_info()
  
      return conda_root
docs: Get the PREFIX of the conda installation.
  
      Returns:
          str: the ROOT_PREFIX of the conda installation