code: def is_valid_resource_name(rname, exception_type=None):
      
  
      match = _ARMNAME_RE.match(rname)
  
      if match:
          return True
      if exception_type:
          raise exception_type()
      return False
docs: Validates the given resource name to ARM guidelines, individual services may be more restrictive.
  
      :param rname: The resource name being validated.
      :type rname: str
      :param exception_type: Raises this Exception if invalid.
      :type exception_type: :class:`Exception`
      :returns: A boolean describing whether the name is valid.
      :rtype: bool