def METHOD_NAME():
    if rc.has_graph:
        if opts.dependency_graph:
            return rc.get_dependency_graph(as_dot=True)
        else:
            return rc.graph(as_dot=True)
    else:
        print("The context does not contain a graph.", file=sys.stderr)
        sys.exit(1)