code: def match(self, node):
      r = super(FixIdioms, self).match(node)
      # If we've matched one of the sort/sorted subpatterns above, we
      # want to reject matches where the initial assignment and the
      # subsequent .sort() call involve different identifiers.
      if r and "sorted" in r:
          if r["id1"] == r["id2"]:
              return r
          return None
      return r
  
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 1 for calling the FixIdioms obj's underlying member method code with example usage: obj.match(node) and returns: r, None, r