code: def any_ends_with(self, string_list, pattern):
          
          try:
              s_base = basestring
          except:
              s_base = str
          is_string = isinstance(pattern, s_base)
  
          if not is_string:
              return False
          for s in string_list:
              if pattern.endswith(s):
                  return True
  
          return False
docs: Returns true iff one of the strings in string_list ends in
          pattern.