code: def remove_common_prefix(
      series: List[Dict[str, Any]], key: str
  ) -> None:
      if not series:
          return
  
      names = []
      for s in series:
          s[key] = s[key].split(".")
  
          names.append(s[key])
  
      common_prefix = find_common_prefix(names)
  
      if common_prefix:
          len_removed = len(common_prefix)
      else:
          len_removed = 0
  
      for s in series:
          name = s[key][len_removed:]
  
          s[key] = ".".join(name)
  
imports: import math
  from typing import List, Dict, Any
label_desc: Use image node_id 2 for calling a global function with example usage: remove_common_prefix(series, key) without return types