code: def collection(document, db_type):
      """Return EphemeralCollection."""
      if db_type != "ephemeraldb":
          pytest.skip("ephemeraldb test only")
  
      collection = EphemeralCollection()
      collection.insert_many([document.to_dict()])
  
      yield collection
  
imports: import pytest
  from orion.core.io.database import Database
  from orion.core.io.database.ephemeraldb import EphemeralCollection, EphemeralDB, EphemeralDocument
label_desc: Use image node_id 4 for calling a global function with example usage: collection(document, db_type) without return types