def get_version():
    """Get the version info from the mpld3 package without importing it"""
    import ast

    with open(os.path.join(os.path.abspath('../'), "gemini", "version.py"), "r") as init_file:
        module = ast.parse(init_file.read())

    version = (ast.literal_eval(node.value) for node in ast.walk(module)
               if isinstance(node, ast.Assign)
               and node.targets[0].id == "__version__")
    try:
        return next(version)
    except __HOLE__:
        raise ValueError("version could not be located")
dataset/ETHPy150Open arq5x/gemini/docs/conf.py/get_version