def setup():
    global connection
    port = config.get('mongodb.port', None)
    if port:
        port = int(port)
    connection = pymongo.Connection(config['mongodb.url'],
                                    port)
    init_model(connection)
:param filepath: new record will append to file if filepath exists
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/setup--crossover with--dataset/ETHPy150Open jjyr/zerotest/zerotest/record/http_recorder.py/HTTPRecorder.__init__