class_docstr: Setup config at `~/.gluoncv` unless it exists already.
class_docstr_tok: ["Setup","config","at","`","~\/.gluoncv","`","unless","it","exists","already","."]
docstr: create new config with default paths and set `version` to 2.
docstr_tok: ["create","new","config","with","default","paths","and","set","`","version","`","to","2","."]
code: def create_config(self, cfg=None):
      "create new config with default paths and set `version` to 2."
      config = {
          "data_path": str(self.config_path / "datasets"),
          "archive_path": str(self.config_path / "archive"),
          "storage_path": "/tmp",
          "model_path": str(self.config_path / "models"),
          "version": 2,
      }
      if cfg is not None:
          cfg["version"] = 2
          config = merge(config, cfg)
      self.save_file(config)
  
file_path: gluon-cv/gluoncv/auto/data/auto_data.py
imports: import os
  import re
  from pathlib import Path
  import yaml
  from ...utils.download import download
  from ...utils.filesystem import unzip, untar, PathTree
label_desc: Use image node_id 7 for calling the Config obj's underlying member method code with example usage: obj.create_config(cfg) without return types