def load_env(workdir, logfile=None, loglevel=logging.INFO):
setup_sdk_logging(logfile, loglevel)<EOL>workdir = os.path.abspath(workdir)<EOL>loaded_workdir = lago_workdir.Workdir(path=workdir)<EOL>prefix = loaded_workdir.get_prefix('<STR_LIT>')<EOL>return SDK(loaded_workdir, prefix)<EOL>
Load an existing Lago environment

Args:
    workdir(str): Path to the workdir directory, as created by
    :func:`~lago.sdk.init` or created by the CLI.
    logfile(str): A Path to setup a log file.
    loglevel(int): :mod:`logging` log level.

Returns:
    :class:`~lago.sdk.SDK`: Initialized Lago environment

Raises:
   :exc:`~lago.utils.LagoException`: If loading the environment failed.