class_docstr: Setup config at `~/.gluoncv` unless it exists already.
class_docstr_tok: ["Setup","config","at","`","~\/.gluoncv","`","unless","it","exists","already","."]
docstr: load and return config if version equals 2 in existing, else create new config.
docstr_tok: ["load","and","return","config","if","version","equals","2","in","existing",",","else","create","new","config","."]
code: def load_config(self):
      "load and return config if version equals 2 in existing, else create new config."
      with open(self.config_file, "r") as f:
          config = yaml.safe_load(f)
          if "version" in config and config["version"] == 2:
              return config
          elif "version" in config:
              self.create_config(config)
          else:
              self.create_config()
      return self.load_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 6 for calling the Config obj's underlying member method code with example usage: obj.load_config() and returns: self, config