code: def set_current_user(self, user):
      if user:
          self.set_cookie("user", tornado.escape.json_encode(user))
      else:
          self.clear_cookie("user")
  
file_path: bokeh/examples/server/app/server_auth/auth.py
imports: import tornado
  from tornado.web import RequestHandler
label_desc: Use image node_id 4 for calling the LoginHandler obj's underlying member method code with example usage: obj.set_current_user(user) without return types