code: def get_session_persistence(self, loadbalancer):
          
          uri = "/loadbalancers/%s/sessionpersistence" % utils.get_id(loadbalancer)
          resp, body = self.api.method_get(uri)
          ret = body["sessionPersistence"].get("persistenceType", "")
          return ret
docs: Returns the session persistence setting for the given load balancer.