class_docstr: MongoDB driver for image-match
  
      
code: def insert_single_record(self, rec):
      self.collection.insert(rec)
  
      # if the collection has no indexes (except possibly '_id'), build them
      if len(self.collection.index_information()) <= 1:
          self.index_collection()
  
file_path: image-match/image_match/mongodb_driver.py
imports: from signature_database_base import SignatureDatabaseBase
  from signature_database_base import normalized_distance
  from multiprocessing import cpu_count, Process, Queue
  from multiprocessing.managers import Queue
  import numpy
label_desc: Use image node_id 3 for calling the SignatureMongo obj's underlying member method code with example usage: obj.insert_single_record(rec) without return types