def METHOD_NAME(types=types, untrusted=True, **overrides):
    e = ChameleonEngine()
    def norm(k):
        return k[:-1] if k.endswith("_") else k
    e.untrusted = untrusted
    ts = e.types
    for k, v in types.items():
        k = norm(k)
        e.registerType(k, v)
    for k, v in overrides.items():
        k = norm(k)
        if k in ts:
            del ts[k]
        e.registerType(k, v)
    return e