code: def reduce_key(key: Union[str, int]) -> str:
      """Takes "1 1 2 1 2 3" -> "1 2 3
  
      :param key: node name
  
      :returns: new node name with duplicates removed
      """
      uniques = " ".join(np.unique(str(key).split()))
      return uniques
  
imports: from typing import Union, Optional, List
  import copy, logging, pandas, numpy
  from graphistry.PlotterBase import Plottable
label_desc: Use image node_id 8 for calling a global function with example usage: reduce_key(key) and returns: uniques