code: def find_common_prefix(names: List[str]) -> str:
      shortest = min(names, key=len)
  
      for i, word in enumerate(shortest):
          for name in names:
              if name[i] != word:
                  return shortest[:i]
  
      return ""
  
imports: import math
  from typing import List, Dict, Any
label_desc: Use image node_id 1 for calling a global function with example usage: find_common_prefix(names) and returns: str, shortest