code: def is_valid_hexameter(self, scanned_line: str) -> bool:
          
          line = scanned_line.replace(self.constants.FOOT_SEPARATOR, "")
          line = line.replace(" ", "")
          if len(line) < 12:
              return False
          line = line[:-1] + self.constants.OPTIONAL_ENDING
          return self.VALID_HEXAMETERS.__contains__(line)
docs: Determine if a scansion pattern is one of the valid hexameter metrical patterns
          :param scanned_line: a line containing a sequence of stressed and unstressed syllables
          :return bool
  
          >>> print(MetricalValidator().is_valid_hexameter("-UU---UU---UU-U"))
          True