code: def from_env(cls) -> "DuckDbIndexConfig":
      env = Env(expand_vars=True)
      with env.prefixed("DUCKDB_INDEX_"):
          return cls(
              cache_directory=env.str(
                  name="CACHE_DIRECTORY",
                  default=DUCKDB_INDEX_CACHE_DIRECTORY,
              ),
              target_revision=env.str(
                  name="TARGET_REVISION",
                  default=DUCKDB_INDEX_TARGET_REVISION,
              ),
          )
  
file_path: datasets-server/services/search/src/search/config.py
imports: from dataclasses import dataclass, field
  from typing import Optional
  from environs import Env
  from libapi.config import ApiConfig
  from libcommon.config import AssetsConfig, CacheConfig, CachedAssetsConfig, CommonConfig, LogConfig, QueueConfig, S3Config
label_desc: Use image node_id 1 for calling the DuckDbIndexConfig obj's underlying member method code with example usage: obj.from_env(cls) and returns: cls