def generate_role_namespace(role_name, role_version):
    """Creates a unique namespace for the given role name and version.
    The returned namespace can be later converted back into its name and
    version using parse_role_namespace.

    :type role_name: str
    :type role_version: str or int
    :rtype: str
    """
    return '%s-%s' % (role_name, role_version)
