code: def transform(self, node, results):
      assert results
      syms = self.syms
      if node.parent.type == syms.not_test and self.pattern.match(
          node.parent
      ):
          # Don't transform a node matching the first alternative of the
          # pattern when its parent matches the second alternative
          return None
      negation = results.get("negation")
      anchor = results["anchor"]
      prefix = node.prefix
      before = [n.clone() for n in results["before"]]
      arg = results["arg"].clone()
      after = results.get("after")
      if after:
          after = [n.clone() for n in after]
      if arg.type in (
          syms.comparison,
          syms.not_test,
          syms.and_test,
          syms.or_test,
          syms.test,
          syms.lambdef,
          syms.argument,
      ):
          arg = parenthesize(arg)
      if len(before) == 1:
          before = before[0]
      else:
          before = pytree.Node(syms.power, before)
      before.prefix = " "
      n_op = Name("in", prefix=" ")
      if negation:
          n_not = Name("not", prefix=" ")
          n_op = pytree.Node(syms.comp_op, (n_not, n_op))
      new = pytree.Node(syms.comparison, (arg, n_op, before))
      if after:
          new = parenthesize(new)
          new = pytree.Node(syms.power, (new,) + tuple(after))
      if node.parent.type in (
          syms.comparison,
          syms.expr,
          syms.xor_expr,
          syms.and_expr,
          syms.shift_expr,
          syms.arith_expr,
          syms.term,
          syms.factor,
          syms.power,
      ):
          new = parenthesize(new)
      new.prefix = prefix
      return new
  
imports: from ..None import pytree
  from ..pgen2 import token
  from ..None import fixer_base
  from ..fixer_util import Name, parenthesize
label_desc: Use image node_id 1 for calling the FixHasKey obj's underlying member method code with example usage: obj.transform(node, results) and returns: new, None