code: def from_env(cls) -> "DatasetsBasedConfig":
      env = Env(expand_vars=True)
      with env.prefixed("DATASETS_BASED_"):
          return cls(
              hf_datasets_cache=env.str(
                  name="HF_DATASETS_CACHE",
                  default=DATASETS_BASED_HF_DATASETS_CACHE,
              ),
          )
  
imports: from dataclasses import dataclass, field
  from typing import Optional
  from environs import Env
  from libcommon.config import AssetsConfig, CacheConfig, CommonConfig, LogConfig, ParquetMetadataConfig, QueueConfig, RowsIndexConfig, S3Config
label_desc: Use image node_id 1 for calling the DatasetsBasedConfig obj's underlying member method code with example usage: obj.from_env(cls) and returns: cls