code: def test_multiple_config_cleanup(self):
      db = foo.get_db_conn()
      orig_config = foo.get_db_config()
  
      # Add some duplicate documents
      d = dict(orig_config.to_dict())
      for _ in range(2):
          d.pop("_id", None)
          db.config.insert_one(d)
  
      # Ensure that duplicate documents are automatically cleaned up
      config = foo.get_db_config()
  
      self.assertEqual(len(list(db.config.aggregate([]))), 1)
      self.assertEqual(config.id, orig_config.id)
  
imports: import time
  import unittest
  from unittest.mock import MagicMock, patch
  import numpy
  import fiftyone
  import fiftyone.constants
  import fiftyone.core.media
  import fiftyone.core.odm
  import fiftyone.core.utils
  from fiftyone.migrations.runner import MigrationRunner
  from decorators import drop_datasets
  from bson import ObjectId
  from fiftyone.core.odm.utils import load_dataset
label_desc: Use image node_id 1 for calling the ConfigTests obj's underlying member method code with example usage: obj.test_multiple_config_cleanup() without return types