code: def pluralize_collection(base, local_cls, referred_cls, constraint):
      "Produce an 'uncamelized', 'pluralized' class name, e.g. "
      "'SomeTerm' -> 'some_terms'"
      referred_name = referred_cls.__name__
      uncamelized = re.sub(r'[A-Z]',
                           lambda m: "_%s" % m.group(0).lower(),
                           referred_name)[1:]
      pluralized = _pluralizer.plural(uncamelized)
      return pluralizef pluralize_collection(base, local_cls, referred_cls, constraint):
      "Produce an 'uncamelized', 'pluralized' class name, e.g. "
      "'SomeTerm' -> 'some_terms'"
      referred_name = referred_cls.__name__
      uncamelized = re.sub(r'[A-Z]',
                           lambda m: "_%s" % m.group(0).lower(),
                           referred_name)[1:]
      pluralized = _pluralizer.plural(uncamelized)
      return pluralized
docs: Produce an 'uncamelized', 'pluralized' class name, e.g.