parameters: (self)
return_statement: return submode
docstring: Checks if the given submode is valid.
docstring_summary: Checks if the given submode is valid.
docstring_tokens: Checks if the given submode is valid .
function: def _get_submode(self):
      """Checks if the given submode is valid."""
  
      found, submode = self.get_flag_value(FLAG_NAME_SUBMODE)
      if not found or not submode:
        submode = _SUBMODE_DETAILED
      if not submode:
        return
      valid_submodes = [_SUBMODE_DETAILED, _SUBMODE_BRIEF]
      if submode not in valid_submodes:
        raise ValueError('Invalid submode "%s" given to the Tensor_Tracer.'
                         'Valid submodes are: %s'%(submode,
                                                   valid_submodes))
      return submode
function_tokens: def _get_submode ( self ) : found , submode = self . get_flag_value ( FLAG_NAME_SUBMODE ) if not found or not submode : submode = _SUBMODE_DETAILED if not submode : return valid_submodes = [ _SUBMODE_DETAILED , _SUBMODE_BRIEF ] if submode not in valid_submodes : raise ValueError ( 'Invalid submode "%s" given to the Tensor_Tracer.' 'Valid submodes are: %s' % ( submode , valid_submodes ) ) return submode