code: def expand_path(experiment_config, key):
      '''Change '~' to user home directory'''
      if experiment_config.get(key):
          experiment_config[key] = os.path.expanduser(experiment_config[key]f expand_path(experiment_config, key):
      '''Change '~' to user home directory'''
      if experiment_config.get(key):
          experiment_config[key] = os.path.expanduser(experiment_config[key])
docs: Change '~' to user home directory