def METHOD_NAME(data, fileName, *args, **kw):
    prefs = evalPrefs(*args, **kw)
    graph_size = prefs.get("graph_size", "normal")
    if graph_size == "normal":
        defaults = graph_normal_prefs
    elif graph_size == "small":
        defaults = graph_small_prefs
    elif graph_size == "thumbnail":
        defaults = graph_thumbnail_prefs
    elif graph_size == "large":
        defaults = graph_large_prefs
    METHOD_NAME = Graph()
    METHOD_NAME.makeGraph(data, common_prefs, defaults, prefs)
    METHOD_NAME.writeGraph(fileName, "PNG")
    return DIRAC.S_OK({"plot": fileName})