code: def __create_supervisor_session(self, supervisor):
          
          session_params = {
              'forceLogoutSession': self.force_logout_session,
              'rollingPeriod': self.rolling_period,
              'statisticsRange': self.statistics_range,
              'shiftStart': self.__to_milliseconds(
                  self.shift_start_hour,
              ),
              'timeZone': self.__to_milliseconds(
                  self.time_zone_offset,
              ),
          }
          supervisor.setSessionParameters(session_params)
          return session_params
docs: Create a new session on the supervisor service.
  
          This is required in order to use most methods for the supervisor,
          so it is called implicitly when generating a supervisor session.