llvm/lldb/test/API/functionalities/data-formatter/varscript_formatting/helperfunc.py

import lldb


def f(value, d):
    return (
        "pointer type"
        if value.GetType().GetTemplateArgumentType(0).IsPointerType()
        else "non-pointer type"
    )