def node_to_dict(resource_node, **kwargs): """Convert neo4j Node instance to python dict. Args: resource_node (Node): A graph node with properties and label info. Returns: dict: of metadata from node. """ data = {} for attribute, value in resource_node.items(): data[attribute] = value return data