def METHOD_NAME(host, datadir, casename):
    threeSlice = 0
    lights = 0
    db = os.path.join(datadir, casename, "mandelbulb.bov")
    OpenDatabase(db)
    mem = MemoryLogger(host, casename)
    mem.sample()
    AddPlot("Pseudocolor", "mandelbulb")
    pc = PseudocolorAttributes(1)
    pc.colorTableName = "RdYlBu"
    SetPlotOptions(pc)
    AddOperator("Isosurface")
    iso = IsosurfaceAttributes()
    iso.contourValue = (0.9,)
    iso.contourMethod = iso.Value
    iso.variable = "mandelbulb"
    SetOperatorOptions(iso)
    AddOperator("Transform")
    trans = TransformAttributes()
    trans.transformType = trans.Coordinate
    trans.inputCoordSys = trans.Spherical
    trans.outputCoordSys = trans.Cartesian
    SetOperatorOptions(trans)
    setView()
    setAnnotationAtts()
    setLights()
    setRenderingAtts()
    DrawPlots()
    mem.sample()
    saveImage(casename)
    mem.sample()
    if threeSlice:
        AddPlot("Pseudocolor", "mandelbulb")
        pc = PseudocolorAttributes(1)
        pc.colorTableName = "RdYlBu"
        SetPlotOptions(pc)
        AddOperator("Transform")
        trans = TransformAttributes()
        trans.transformType = trans.Coordinate
        trans.inputCoordSys = trans.Spherical
        trans.outputCoordSys = trans.Cartesian
        SetOperatorOptions(trans)
        AddOperator("ThreeSlice")
        DrawPlots()
        mem.sample()
        saveImage(casename)
        DeleteActivePlots()
    if lights: # Try out some other lights.
        DisableRedraw()
        setLights2()
        pc.colorTableName = "xray"
        SetPlotOptions(pc)
        RedrawWindow()
        saveImage(casename)
        mem.sample()
    DeleteAllPlots()
    CloseDatabase(db)