code: def test_cache_database(mongo_host: str) -> None:
      resource = MigrationsMongoResource(
          database="test_migrations_database", host=mongo_host
      )
  
      class User(Document):
          name = StringField()
          meta = {"db_alias": resource.mongoengine_alias}
  
      assert len(User.objects()) == 0  # type: ignore
      # clean
      User.drop_collection()  # type: ignore
      assert resource.is_available()
      resource.release()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_cache_database(mongo_host) without return types