def module2upstream(mod):
for rule in OPENSTACK_UPSTREAM_PKG_MAP:<EOL><INDENT>pkglist = rule(mod, dist=None)<EOL>if pkglist:<EOL><INDENT>return pkglist[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return mod<EOL>
Return a corresponding OpenStack upstream name for a python module.

    mod  -- python module name