code: def connect(uri, factory=pymongo.MongoClient):
      
      warnings.warn(
          "do not use. Just call MongoClient directly.", DeprecationWarning)
      return factory(uri)
docs: Use the factory to establish a connection to uri.