def equal_args(*args, **kwargs):
  key = args
  if kwargs:
    key += _kwargs_separator + tuple(sorted(kwargs.items()))
  return key
A memoized key factory that compares the equality (`==`) of a stable sort of the parameters.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/util/memo.py/equal_args