code: def get_environment(
      bento_identifier: str,
      env: t.Literal["conda"],
      bento_store: BentoStore = Provide[BentoMLContainer.bento_store],
  ) -> Environment:
      # env created will be ephemeral
      if os.path.isdir(os.path.expanduser(bento_identifier)):
          bento_path_fs = fs.open_fs(
              os.path.abspath(os.path.expanduser(bento_identifier))
          )
          if bento_path_fs.isfile(BENTO_YAML_FILENAME):
              # path to a build bento dir
              return EnvManager.from_bento(
                  env_type=env, bento=Bento.from_fs(bento_path_fs)
              ).environment
          elif bento_path_fs.isfile(DEFAULT_BENTO_BUILD_FILE):
              # path to a bento project
              raise NotImplementedError(
                  "Serving from development project is not yet supported."
              )
          else:
              raise BentoMLException(
                  f"EnvManager failed to create an environment from path {bento_path_fs}. When loading from a path, it must be either a Bento or a project directory containing '{DEFAULT_BENTO_BUILD_FILE}'."
              )
      else:
          try:
              bento = bento_store.get(bento_identifier)
              return EnvManager.from_bento(
                  env_type=env,
                  bento=bento,
                  is_ephemeral=False,
              ).environment
          except BentoNotFound:
              # service definition
              raise NotImplementedError(
                  "Serving bento with 'import_string' in an environment is not supported now."
              )
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import re
  import sys
  import typing
  from shutil import which
  import click
  import fs
  from simple_di import Provide
  from simple_di import inject
  from bentoml._internal.bento.bento import BENTO_YAML_FILENAME
  from bentoml._internal.bento.bento import DEFAULT_BENTO_BUILD_FILE
  from bentoml._internal.bento.bento import Bento
  from bentoml._internal.bento.bento import BentoStore
  from bentoml._internal.configuration import get_debug_mode
  from bentoml._internal.configuration.containers import BentoMLContainer
  from bentoml._internal.env_manager import EnvManager
  from bentoml._internal.env_manager.envs import Environment
  from bentoml.exceptions import BentoMLException
  from bentoml.exceptions import NotFound
label_desc: Use image node_id 2 for calling a global function with example usage: get_environment(bento_identifier, env, bento_store) and returns: EnvManager, EnvManager