code: def __get_index(lst, indices=None, prefix=None):
      if indices is None:
          indices = []
      if prefix is None:
          prefix = []
  
      if isinstance(lst, list):
          for i, sub_lst in enumerate(lst):
              sub_indices = prefix + [i]
              __get_index(sub_lst, indices, sub_indices)
      else:
          indices.append((lst, tuple(prefix)))
      return indices
  
imports: from typing import Union, Optional, Tuple, Sequence
  import tensorflow
  from tensorflow.python.ops.numpy_ops import np_math_ops
  import ivy
  from ivy import with_unsupported_dtypes, with_supported_dtypes, with_supported_device_and_dtypes
  from ..None import backend_version
  from copy import deepcopy
label_desc: Use image node_id 19 for calling a global function with example usage: __get_index(lst, indices, prefix) and returns: indices