code: def db_test_data(request, db_type):
      """Return test data corresponding to the current database type"""
      for key in request.param:
          if db_type in key:
              yield request.param[key]
              break
      else:
          raise ValueError("Invalid database type")
  
imports: import os
  from datetime import datetime
  import pytest
  from orion.core.io.database import Database
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
label_desc: Use image node_id 6 for calling a global function with example usage: db_test_data(request, db_type) without return types