def METHOD_NAME(config_json, from_file=False) -> Config:
    """
    Reads a config specification from json, dedcodes it, and returns the
    resultant dict.
    """
    if from_file:
        config = load_config(config_json)
    else:
        config_base64_bytes = config_json.encode("utf-8")
        config_b64_bytes = base64.b64decode(config_base64_bytes)
        config_string = config_b64_bytes.decode("utf-8")
        config = json.loads(config_string)
    return config