code: def flags(self, text, scoped=False):
          
  
          global_retry = False
          if ('a' in text or 'L' in text) and self.unicode:
              self.unicode = False
              if not _SCOPED_FLAG_SUPPORT or not scoped:
                  self.temp_global_flag_swap["unicode"] = True
                  global_retry = True
          elif 'u' in text and not self.unicode and not self.is_bytes:
              self.unicode = True
              if not _SCOPED_FLAG_SUPPORT or not scoped:
                  self.temp_global_flag_swap["unicode"] = True
                  global_retry = True
          if _SCOPED_FLAG_SUPPORT and '-x' in text and self.verbose:
              self.verbose = False
          elif 'x' in text and not self.verbose:
              self.verbose = True
              if not _SCOPED_FLAG_SUPPORT or not scoped:
                  self.temp_global_flag_swap["verbose"] = True
                  global_retry = True
          if global_retry:
              raise GlobalRetryException('Global Retry')
docs: Analyze flags.