code: def get_indices(targets, labels):
      return [get_index(t, labels) for t in targets]
  
imports: from math import prod
  from sympy.physics.quantum.gate import H, CNOT, X, Z, CGate, CGateS, SWAP, S, T, CPHASE
  from sympy.physics.quantum.circuitplot import Mz
label_desc: Use image node_id 6 for calling a global function with example usage: get_indices(targets, labels) and returns: unknown