code: def db_type(pytestconfig, request):
      """Return the string identifier of a supported database type based on the
      --mongodb option
  
      If `--mongodb` is active, only MongoDB tests will be run. Otherwise,
      all non-MongoDB will be run.
      """
      if request.param == "mongodb" and not pytestconfig.getoption(
          "--mongodb"
      ):
          pytest.skip(f"{request.param} tests disabled")
      elif request.param != "mongodb" and pytestconfig.getoption(
          "--mongodb"
      ):
          pytest.skip(f"{request.param} tests disabled")
      yield request.param
  
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 3 for calling a global function with example usage: db_type(pytestconfig, request) without return types