code: def transform_isinstance(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
  
file_path: catboost/contrib/tools/python/src/Lib/lib2to3/fixes/fix_idioms.py
imports: from ..None import fixer_base
  from ..fixer_util import Call, Comma, Name, Node, BlankLine, syms
label_desc: Use image node_id 3 for calling the FixIdioms obj's underlying member method code with example usage: obj.transform_isinstance(node, results) and returns: test