code: def _modeIsValid(self, mode):
          
          try:
              # Suport for version 2 of wrappers
              return mode in self.modes.keys()
          except AttributeError as e:
              # Legacy for mantaining old wrappers
              if mode in self.isValidMode.keys():
                  if mode in self.isValidMode.keys():
                      return True
          return False
docs: Verification of whether the mode is a correct option to be used.
  
          Args:
          -----
              mode: Mode to be executed.
  
          Return:
          -------
              True if the mode exists in the three main folders.