code: def _update_other_results(results, best):
      """Update the positions and provisional input_sets of ``results`` based on
      performing the contraction result ``best``. Remove any involving the tensors
      contracted.
  
      Parameters
      ----------
      results : list
          List of contraction results produced by ``_parse_possible_contraction``.
      best : list
          The best contraction of ``results`` i.e. the one that will be performed.
  
      Returns
      -------
      mod_results : list
          The list of modified results, updated with outcome of ``best`` contraction.
      """
  
      best_con = best[1]
      bx, by = best_con
      mod_results = []
  
      for cost, (x, y), con_sets in results:
          # Ignore results involving tensors just contracted
          if x in best_con or y in best_con:
              continue
  
          # Update the input_sets
          del con_sets[by - int(by > x) - int(by > y)]
          del con_sets[bx - int(bx > x) - int(bx > y)]
          con_sets.insert(-1, best[2][-1])
  
          # Update the position indices
          mod_con = x - int(x > bx) - int(x > by), y - int(
              y > bx
          ) - int(y > by)
          mod_results.append((cost, mod_con, con_sets))
  
      return mod_results
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/einsumfunc.py
imports: import itertools
  import operator
  from numpy.core.multiarray import c_einsum
  from numpy.core.numeric import asanyarray, tensordot
  from numpy.core.overrides import array_function_dispatch
label_desc: Use image node_id 6 for calling a global function with example usage: _update_other_results(results, best) and returns: mod_results