code: def _load_asset_directory() -> None:
      asset_dir = _get_path_from_env("FAIRSEQ2_ASSET_DIR")
      if asset_dir is None:
          asset_dir = Path("/etc/fairseq2/assets").resolve()
          if not asset_dir.exists():
              return
  
      asset_store.metadata_providers.append(
          FileAssetMetadataProvider(asset_dir)
      )
  
imports: from __future__ import annotations
  import os
  from abc import ABC, abstractmethod
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Protocol, final
  from fairseq2.assets.card import AssetCard, AssetCardError
  from fairseq2.assets.metadata_provider import AssetMetadataProvider, AssetNotFoundError, FileAssetMetadataProvider
  from fairseq2.assets.utils import _get_path_from_env
  from fairseq2.typing import finaloverride
label_desc: Use image node_id 2 for calling a global function with example usage: _load_asset_directory() without return types