def METHOD_NAME(self, node, results):
    x = results["x"].clone() # The thing inside of type()
    T = results["T"].clone() # The type being compared against
    x.prefix = ""
    T.prefix = " "
    test = Call(Name("isinstance"), [x, Comma(), T])
    if "n" in results:
        test.prefix = " "
        test = Node(syms.not_test, [Name("not"), test])
    test.prefix = node.prefix
    return test