def dict_to_sequence(d):
    """Returns an internal sequence dictionary update."""

    if hasattr(d, 'items'):
        d = d.items()

    return d
Returns an internal sequence dictionary update.
product/gradle-plugin/src/main/python/pip/_vendor/requests/utils.py