def METHOD_NAME() -> _Environ:
    """Compute the environment for running commands."""
    base_env = os.environ
    anod_cmd = [ANOD_BIN, "printenv", "lmcpgen", "--build-env", "--inline"]
    if os.path.exists(ANOD_BIN):
        result = subprocess.run(anod_cmd, capture_output=True, check=True)
        env_parts = re.split(
            r"[ =]",
            re.sub(r'"', "", result.stdout.decode(sys.stdout.encoding)).strip(),
        )
        if len(env_parts) % 2 == 0:
            for i in range(0, len(env_parts), 2):
                base_env[env_parts[i]] = env_parts[i + 1]
    return base_env