code: def set_current_session(session_id) -> bool:
          
          try:
              g.session_id = session_id
              return True
          except (Exception, BaseException) as error:
              # catch all on config update
              if current_app.config['DEBUG']:
                  print(error)
              return False
docs: Add session_id to flask globals for current request