def find(self, label, property_key=None, property_value=None, limit=None):
        if not label:
            raise ValueError("Empty label")
        clauses = ["MATCH (a:%s)" % cypher_escape(label)]
        parameters = {}
        if property_key is not None:
            if isinstance(property_value, (tuple, set, frozenset)):
                clauses.append("WHERE a.%s IN {x}" % cypher_escape(property_key))
                parameters["x"] = list(property_value)
            else:
                clauses.append("WHERE a.%s = {x}" % cypher_escape(property_key))
                parameters["x"] = property_value
        clauses.append("RETURN a, labels(a)")
        if limit:
            clauses.append("LIMIT %d" % limit)
        cursor = self.run("\n".join(clauses), parameters)
        while cursor.forward():
            record = cursor.current()
            a = record[0]
            a.update_labels(record[1])
            yield a
        cursor.close()
Opens a session to the specified resource.
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/database/__init__.py/Graph.find--crossover with--dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/VisaLibraryBase.open