code: def init_mongo_db(mongo_address: str = ""):
      if not mongo_address:
          if "MONGO_HOST" in os.environ:
              mongo_address = os.getenv("MONGO_HOST")
          else:
              mongo_address = "localhost"
  
      mongo_client = MongoClient(
          host=mongo_address, port=27017, connect=False
      )
      db = mongo_client["labml"]
  
      Model.set_db_drivers([MongoPickleDbDriver(m, db) for m in models])
      Index.set_db_drivers([MongoIndexDbDriver(m, db) for m in indexes])
  
      project.create_project(
          settings.FLOAT_PROJECT_TOKEN, "float project"
      )
      project.create_project(
          settings.SAMPLES_PROJECT_TOKEN, "samples project"
      )
  
      return mongo_client
  
imports: import os
  from typing import List, Type, Optional
  import pickle
  from labml_db.model import ModelDict
  from labml_db import Model, Index
  from labml_db.driver.mongo import MongoDbDriver
  from labml_db.index_driver.mongo import MongoIndexDbDriver
  from pymongo import MongoClient
  from ..None import settings
  from .None import project
  from .None import user
  from .None import status
  from .None import app_token
  from .None import run
  from .None import session
  from .None import computer
  from ..None import analyses
label_desc: Use image node_id 1 for calling a global function with example usage: init_mongo_db(mongo_address) and returns: mongo_client