code: def db_type(pytestconfig, request):
      """Return the string identifier of a MongoDB if the --mongodb option is
      active"""
      if not pytestconfig.getoption("--mongodb"):
          pytest.skip("mongodb tests disabled")
      yield "mongodb"
  
imports: import functools
  from timeit import timeit
  import pymongo
  import pytest
  from pymongo import MongoClient
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.mongodb import AUTH_FAILED_MESSAGES, MongoDB
  from .conftest import insert_test_collection
  from .test_database import get_db
label_desc: Use image node_id 1 for calling a global function with example usage: db_type(pytestconfig, request) without return types