code: def _dic_translator(x, dic):
      x = x.copy()
      for i in range(len(x)):
          x[i] = dic[x[i]]
      return x
  
imports: from collections.abc import Iterable
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _dic_translator(x, dic) and returns: x