def METHOD_NAME(collection):
    row = collection.find_one(sort=[("_id", pymongo.DESCENDING)])
    if row:
        return row['_id']
    LOGGER.info("No max id found for collection: collection is likely empty")
    return None