def join_node_name_parts(long_prefix, namespace, base_name):
    """
    Joins given Maya name parts (long_prefix, namesapcne and base_name) to create a full Maya node name
    :param long_prefix: str, long prefix of the node ('a:grp1|grp2'). It can be empty ('')
    :param namespace: str, namespace if exists (b:c). It can be empty ('')
    :param base_name: str, base name of the Maya node (pSphere1')
    :return: str, joined maya name (a:grp1|grp2|b:c:pSphere1)
    """
    full_name = base_name
    if namespace:
        full_name = ':'.join([namespace, base_name])
    if long_prefix:
        full_name = '|'.join([long_prefix, full_name])
    return full_name
