def format_arg_value(arg_val):
    """
    Return a string representing a (name, value) pair.

    Example::

      >>> 'x=(1, 2, 3)' == format_arg_value(('x', (1, 2, 3)))
      True
    """
    arg, val = arg_val
    return '%s=%r' % (arg, val)
