# Path: Echobase/Common/errors.py
# def check_dims(arr, nd):
# def check_type(obj, typ):
# def check_function(obj):
# def check_path(path):
# def make_path(path):
# def check_path_overwrite(path):
# def check_has_key(dictionary, key_ref):


import numpy as np
from ...Common import errors

        if not nodes[0] in node_labels:
            node_labels.append(nodes[0])
        if not nodes[1] in node_labels:
            node_labels.append(nodes[1])

    return node_labels, node_pair_labels


def find_symm_conn(node_pair_labels, conn_labels):
    '''
    Return connection indices for a list of node pairs
    Assumes symmetric connectivity

    Parameters
    ----------
        node_pair_labels: list(tuples(str, str))
            List of pairwise nodes

        conn_labels: list(str)
            List of connections as strings.
            Nomenclature: '[Node_1]<>[Node_2]' (ignore [] in string)

    Returns
    -------
        conn_ix: list(int)
            List of connection indices
    '''
    # Standard param checks
    errors.check_type(node_pair_labels, list)

# Path: Echobase/Common/errors.py
# def check_dims(arr, nd):
# def check_type(obj, typ):
# def check_function(obj):
# def check_path(path):
# def make_path(path):
# def check_path_overwrite(path):
# def check_has_key(dictionary, key_ref):


# Path: Echobase/Network/Transforms/configuration.py
import numpy as np
from ...Common import errors


        if not nodes[0] in node_labels:
            node_labels.append(nodes[0])
        if not nodes[1] in node_labels:
            node_labels.append(nodes[1])

    return node_labels, node_pair_labels


def find_symm_conn(node_pair_labels, conn_labels):
    '''
    Return connection indices for a list of node pairs
    Assumes symmetric connectivity

    Parameters
    ----------
        node_pair_labels: list(tuples(str, str))
            List of pairwise nodes

        conn_labels: list(str)
            List of connections as strings.
            Nomenclature: '[Node_1]<>[Node_2]' (ignore [] in string)

    Returns
    -------
        conn_ix: list(int)
            List of connection indices
    '''
    # Standard param checks
    errors.check_type(node_pair_labels, list)

    errors.check_type(node_pair_labels[0], tuple)