def truncate_file(filename):
    open(filename, 'w').close()  # opening as 'w' overwrites the file
Update the config with the new dictionary.
dataset/ETHPy150Open circus-tent/circus/circus/tests/support.py/truncate_file--crossover with--dataset/ETHPy150Open pinterest/kingpin/kingpin/manageddata/managed_datastructures.py/ManagedMappedList._update_config