def __init__(self, config=None, config_dir=None):
if config:<EOL><INDENT>self.config = config<EOL><DEDENT>elif config_dir:<EOL><INDENT>self.config = config.Config(read=config_dir)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Kwargs:
    config (dict or MungeConfig): configuration object, note that
        either this or config_dir need to be specified.
    config_dir (str): path to config directory, will attempt to
        read into a new MungeConfig instance from there.