def to_namespace(node, namespace):
    """Return node name as if it's inside the namespace.

    Args:
        node (str): Node name
        namespace (str): Namespace

    Returns:
        str: The node in the namespace.

    """
    namespace_prefix = '|{}:'.format(namespace)
    node = namespace_prefix.join(node.split('|'))
    return node
