parameters: (h)
return_statement: return i
docstring: Cheap function to invert a hash.
docstring_summary: Cheap function to invert a hash.
docstring_tokens: Cheap function to invert a hash .
function: def _invert(h):
          "Cheap function to invert a hash."
          i = {}
          for k,v in h.items():
              i[v] = k
          return i
function_tokens: def _invert ( h ) : i = { } for k , v in h . items ( ) : i [ v ] = k return i