code: def index(it, ind):
      """Fancy indexing into an indexable iterable (tuple, list).
  
      Examples
      ========
  
      >>> from sympy.unify.core import index
      >>> index([10, 20, 30], (1, 2, 0))
      [20, 30, 10]
      """
      return type(it)([it[i] for i in ind])
  
imports: from sympy.utilities.iterables import kbins
label_desc: Use image node_id 9 for calling a global function with example usage: index(it, ind) and returns: type