from pathlib import Path


def node(ph5, path, class_name):
    """
    Get the node handle of a given path and class name
    
    :param ph5: an open ph5 object
    :type ph5: ph5 object
    
    :param path: path to node
    :type path: string
    
    :param class_name: name of class to get
    :type class_name: string 
    """
    handle = None
    path = Path(path)

    handle = ph5.get_node(str(path.parent), 
                          name=path.name, 
                          classname=class_name)

    return handle