code: def is_pattern_valid(pattern):
          
          result = True
          translator = Globster.pattern_info[Globster.identify(pattern)]["translator"]
          tpattern = '(%s)' % translator(pattern)
          try:
              re_obj = lazy_regex.lazy_compile(tpattern, re.UNICODE)
              re_obj.search("") # force compile
          except Exception as e:
              result = False
          return result
docs: Returns True if pattern is valid.
  
          :param pattern: Normalized pattern.
          is_pattern_valid() assumes pattern to be normalized.
          see: globbing.normalize_pattern