code: def libraries_resource(
      app_config: AppConfig,
  ) -> Iterator[LibrariesResource]:
      with LibrariesResource(
          hf_endpoint=app_config.common.hf_endpoint,
          init_hf_datasets_cache=app_config.datasets_based.hf_datasets_cache,
          numba_path=app_config.numba.path,
      ) as libraries_resource:
          yield libraries_resource
  
imports: from collections.abc import Iterator
  from pathlib import Path
  from libcommon.queue import _clean_queue_database
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import _clean_cache_database
  from libcommon.storage import StrPath, init_duckdb_index_cache_dir, init_parquet_metadata_dir, init_statistics_cache_dir
  from pytest import MonkeyPatch, fixture
  from worker.config import AppConfig
  from worker.main import WORKER_STATE_FILE_NAME
  from worker.resources import LibrariesResource
  from .constants import CI_APP_TOKEN, CI_HUB_ENDPOINT, CI_PARQUET_CONVERTER_APP_TOKEN, CI_URL_TEMPLATE
label_desc: Use image node_id 11 for calling a global function with example usage: libraries_resource(app_config) without return types