code: def slugify(value):
      
      value = re.sub(r"[^\w\s-]", "", value).strip()
      return re.sub(r"[-\s]+", "-", value)
docs: Converts to lowercase, removes non-word characters (alphanumerics and
      underscores) and converts spaces to hyphens. Also strips leading and
      trailing whitespace.