code: def slugify(values, ensure_unique=False, **kwargs):
      """
      Given a sequence of strings, returns a standardized version of the sequence.
      If ``ensure_unique`` is True, any duplicate strings will be appended with
      a unique identifier.
  
      agate uses an underscore as a default separator but this can be changed with
      kwargs.
  
      Any kwargs will be passed to the slugify method in python-slugify. See:
      https://github.com/un33k/python-slugify
      """
      slug_args = {"separator": "_"}
      slug_args.update(kwargs)
  
      if ensure_unique:
          new_values = tuple(
              pslugify(value, **slug_args) for value in values
          )
          return deduplicate(
              new_values, separator=slug_args["separator"]
          )
  
      return tuple(pslugify(value, **slug_args) for value in values)
  
imports: import math
  import string
  from collections import OrderedDict
  from collections.abc import Sequence
  from decimal import ROUND_CEILING, ROUND_FLOOR, Decimal, getcontext
  from functools import wraps
  from slugify import slugify
  from agate import config
  from agate.warns import warn_duplicate_column, warn_unnamed_column
label_desc: Use image node_id 10 for calling a global function with example usage: slugify(values, ensure_unique) and returns: tuple, deduplicate