code: def cache_mongo_resource(
      job_config: JobConfig,
  ) -> Iterator[CacheMongoResource]:
      with CacheMongoResource(
          database=job_config.cache.mongo_database,
          host=job_config.cache.mongo_url,
      ) as resource:
          yield resource
          _clean_cache_database()
  
file_path: datasets-server/jobs/cache_maintenance/tests/conftest.py
imports: from collections.abc import Iterator
  from libcommon.queue import _clean_queue_database
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import _clean_cache_database
  from pytest import MonkeyPatch, fixture
  from cache_maintenance.config import JobConfig
  from .constants import CI_APP_TOKEN, CI_HUB_ENDPOINT, CI_PARQUET_CONVERTER_APP_TOKEN, CI_PARQUET_CONVERTER_USER
label_desc: Use image node_id 3 for calling a global function with example usage: cache_mongo_resource(job_config) without return types