code: def convert_array_to_indexed(expr, indices):
      return _ConvertArrayToIndexed().do_convert(expr, indices)
  
file_path: sympy/sympy/tensor/array/expressions/from_array_to_indexed.py
imports: import collections.abc
  import operator
  from itertools import accumulate
  from sympy import Mul, Sum, Dummy, Add
  from sympy.tensor.array.expressions import PermuteDims, ArrayAdd, ArrayElementwiseApplyFunc, Reshape
  from sympy.tensor.array.expressions.array_expressions import ArrayTensorProduct, get_rank, ArrayContraction, ArrayDiagonal, get_shape, _get_array_element_or_slice, _ArrayExpr
  from sympy.tensor.array.expressions.utils import _apply_permutation_to_list
label_desc: Use image node_id 1 for calling a global function with example usage: convert_array_to_indexed(expr, indices) and returns: _ConvertArrayToIndexed