def __get_node_types(args: dict):
    """
    Given the parsed arguments, returns a dictionary of flags
    representing the node types to be processed
    :param dict args: dictionary of parsed args
    :return: dictionary of node types
    """
    out = dict(pose=False, hand=False, face=False)
    # check if only face or only hand is required
    if 'body' in args and args['body'] == '0':
        # only hand
        if 'hand' in args and 'face' not in args or args['face'] == '0':
            out['hand'] = True
            return out
        # only face
        elif 'face' in args and 'hand' not in args or args['hand'] == '0':
            out['face'] = True
            return out
        else:
            raise RuntimeError('--hand and --face cannot be used'
                               'simultaneously with --body 0')
    else:
        out['pose'] = True
        if 'hand' in args:
            out['hand'] = True
        if 'face' in args:
            out['face'] = True
    return out