import six


def join_memory_tool_options(options):
  """Joins a dict holding memory tool options into a string that can be set in
  the environment."""
  return ':'.join('%s=%s' % (key, str(value))
                  for key, value in sorted(six.iteritems(options)))