code: def _validate_marker_name(self, marker_name):
          
  
          if marker_name not in self.valid_marker_names:
              raise InvalidMarkerNameError(
                  "{} is not a valid marker name".format(marker_name)
              )
  
          return marker_name
docs: Validates marker name, raising error if invalid.