code: def _dict_refs(obj, named):
      '''Return key and value objects of a dict/proxy.
      '''
      if named:
          for k, v in _items(obj):
              s = str(k)
              yield _NamedRef('[K] ' + s, k)
              yield _NamedRef('[V] ' + s + ': ' + _repr(v), v)
      else:
          for k, v in _items(obj):
              yield k
              yield f _dict_refs(obj, named):
      '''Return key and value objects of a dict/proxy.
      '''
      if named:
          for k, v in _items(obj):
              s = str(k)
              yield _NamedRef('[K] ' + s, k)
              yield _NamedRef('[V] ' + s + ': ' + _repr(v), v)
      else:
          for k, v in _items(obj):
              yield k
              yield v
docs: Return key and value objects of a dict/proxy.