code: def signed_session(self, session=None):
          
          # Token cache is handled by the VM extension, call each time to avoid expiration
          self.set_token()
          return super(MSIAuthentication, self).signed_session(session)
docs: Create requests session with any required auth headers applied.
  
          If a session object is provided, configure it directly. Otherwise,
          create a new session and return it.
  
          :param session: The session to configure for authentication
          :type session: requests.Session
          :rtype: requests.Session