code: def _gen_ids(data: pd.DataFrame, col: str, prefix: str):
      lookup = {}
      for text in data[col].unique():
          lookup[text] = prefix + str(len(lookup))
      return data[col].map(lookup)
  
imports: import typing
  import pandas
  import numpy
  import matchzoo
label_desc: Use image node_id 3 for calling a global function with example usage: _gen_ids(data, col, prefix) and returns: data