code: def get_common_suffix(series):
      common_suffix = ""
      while True:
          candidate_common_suffixes = series.str[
              -(len(common_suffix) + 1) :
          ]
          if candidate_common_suffixes.nunique() != 1:
              # candidate_common_suffixes contains more than one value
              # therefore, it is no longer a common suffix
              break
          elif common_suffix == candidate_common_suffixes.values[0]:
              # candidate is the same as previous common_suffix
              # therefore values in series are too short to move back by one char
              break
          else:
              common_suffix = candidate_common_suffixes.values[0]
      return common_suffix
  
imports: import argparse
  import math
  import os
  import pathlib
  from collections import Counter
  import numpy
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: get_common_suffix(series) and returns: common_suffix