def METHOD_NAME(self, person1_name, person2_name, knows_from):
    with self.driver.session() as session:
        # Write transactions allow the driver to handle retries and transient errors
        result = session.execute_write(
            self._create_and_return_friendship, person1_name, person2_name, knows_from)
        for row in result:
            print("Created friendship between: {p1}, {p2} from {knows_from}"
                  .format(
                      p1=row['p1'],
                      p2=row['p2'],
                      knows_from=row["knows_from"]))