code: def setup_auth(self):
          
          self.token = self.nb_record.token
          first = requests.get(f"{self.url}/login")
          self.xsrf_token = first.cookies.get("_xsrf", "")
docs: Sets up token access for authorizing requests to notebook server.
  
          This sets the notebook token as self.token and the xsrf_token as self.xsrf_token.