code: def from_bento(
      cls,
      env_type: t.Literal["conda"],
      bento: Bento,
      is_ephemeral: bool,
  ) -> EnvManager:
      env_name: str
      if is_ephemeral:
          env_name = "ephemeral_env"
      else:
          env_name = str(bento.tag).replace(":", "_")
      return cls(
          env_type=env_type,
          env_name=env_name,
          is_ephemeral=is_ephemeral,
          bento=bento,
      )
  
file_path: BentoML/grpc-client/bentoml/_internal/env_manager/manager.py
imports: from __future__ import annotations
  import logging
  import typing
  import fs
  from simple_di import Provide
  from simple_di import inject
  from ..bento.bento import Bento
  from ..bento.bento import BentoInfo
  from ..configuration.containers import BentoMLContainer
  from .envs import Conda
label_desc: Use image node_id 2 for calling the EnvManager obj's underlying member method code with example usage: obj.from_bento(cls, env_type, bento, is_ephemeral) and returns: cls