def maybe_init_config_file():
    """Initialize Avalanche user's config file, if it does not exists yet.

    The file is located in `~/.avalanche/config.json`
    """
    if os.path.exists(AVALANCHE_CONFIG_FILENAME):
        return
    os.makedirs(AVALANCHE_CONFIG_ROOT, exist_ok=True)
    default_config = {"dataset_location": os.path.expanduser("~/.avalanche/data")}

    with open(AVALANCHE_CONFIG_FILENAME, "w") as f:
        json.dump(default_config, f, indent=4)
Initialize Avalanche user's config file, if it does not exists yet.

    The file is located in `~/.avalanche/config.json`
    
avalanche/benchmarks/datasets/dataset_utils.py