[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify code snippets into one of the following categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']."}, {'role': 'user', 'content': "Identify the single most appropriate category to which the provided code belongs. Provide your response as a single category label without any additional information, commentary, or personal opinions.\\nPython Code:def get_mongo_database(db_name, host='localhost',\nport=27017, username=None, password=None):\nif username and password:\nmongo_uri = 'mongodb://%s:%s@%s/%s'%(username, password, host, db_name)\nconn = pymongo.MongoClient(mongo_uri)\nelse:\nconn = pymongo.MongoClient(host, port)\nreturn conn[db_name]\ndef mongo_to_dataframe(db_name, collection, query={},\nhost='localhost', port=27017,\nusername=None, password=None, no_id=True):\ndb = get_mongo_database(db_name, host, port, username, password)\ncursor = db[collection].find(query)\ndf = pd.DataFrame(list(cursor))\nif no_id:\ndel df['_id']\nreturn df\ndef dataframe_to_mongo(df, db_name, collection,\nhost='localhost', port=27017,\nusername=None, password=None):\ndb = get_mongo_database(db_name, host, port, username, password)\nrecords = df.to_dict('records')\ndb[collection].insert_many(records)"}, {'role': 'assistant', 'content': 'load_data'}]