def get_specification(version: str) -> Mapping[str, Any]:
spec_dir = config["<STR_LIT>"]["<STR_LIT>"]["<STR_LIT>"]<EOL>spec_dict = {}<EOL>bel_versions = get_bel_versions()<EOL>if version not in bel_versions:<EOL><INDENT>log.error("<STR_LIT>")<EOL>return {"<STR_LIT:error>": "<STR_LIT>"}<EOL><DEDENT>version_underscored = version.replace("<STR_LIT:.>", "<STR_LIT:_>")<EOL>json_fn = f"<STR_LIT>"<EOL>with open(json_fn, "<STR_LIT:r>") as f:<EOL><INDENT>spec_dict = json.load(f)<EOL><DEDENT>return spec_dict<EOL>
Get BEL Specification

    The json file this depends on is generated by belspec_yaml2json as
    part of the update_specifications function

    Args:
        version: e.g. 2.0.0 where the filename